没有合适的资源?快使用搜索试试~ 我知道了~
Concurrency in Go Tools and Techniques for Developers
需积分: 9 18 下载量 80 浏览量
2017-07-16
17:05:20
上传
评论
收藏 1.86MB PDF 举报
温馨提示
试读
331页
新书还未正式发行 Concurrency can be notoriously difficult to get right, but fortunately, the Go programming language was designed with concurrency in mind. In this practical book, you’ll learn how Go was written to help introduce and master these concepts, as well as how to use basic concurrency patterns to form large systems that are reliable and remain simple and easy to understand. Author Katherine Cox-Buday takes you through the tools and techniques to develop and debug concurrent software. After finishing Concurrency in Go, you’ll be equipped with the skills you need to confidently and correctly write concurrent systems of any size.
资源推荐
资源详情
资源评论
3. Online Resources
4. Conventions Used in This Book
5. Using Code Examples
6. O’Reilly Safari
7. How to Contact Us
8. Acknowledgments
2. 1. An Introduction to Concurrency
1. Moore’s Law, Web Scale, and The Mess We’re In
2. Why is Concurrency Hard?
1. Race Conditions
2. Atomicity
3. Memory Access Synchronization
4. Deadlocks, Livelocks, and Starvation
5. Determining Concurrency Safety
3. Simplicity in the Face of Complexity
3. 2. Modelling your code: Communicating Sequential Processes
1. The Difference Between Concurrency & Parallelism
2. What is CSP?
3. How this helps you
4. Go’s Philosophy on Concurrency
4. 3. Go’s Concurrency Building Blocks
1. Goroutines
2. The sync package
1. WaitGroup
2. Mutex & RWMutex
3. Cond
4. Once
5. Pool
3. Channels
4. The Select Statement
5. The GOMAXPROCS Lever
6. Conclusion
5. 4. Concurrency Patterns in Go
1. Confinement
2. The for-select loop
3. Preventing goroutine leaks
4. The or-channel
5. Error Handling
6. Pipelines
1. Best Practices for Constructing Pipelines
2. Some Handy Generators
7. Fan Out, Fan In
8. The or-done-channel
9. The tee-channel
10. The bridge-channel
11. Queuing
12. The context Package
13. Summary
6. 5. Concurrency at Scale
1. Error Propagation
2. Time Outs & Cancellation
3. Heartbeats
4. Replicated Requests
5. Rate Limiting
6. Healing Unhealthy Goroutines
7. Summary
7. 6. Goroutines and the Go Runtime
1. Work Stealing
1. Stealing Tasks or Continuations?
2. Presenting all of this to the developer
3. Conclusion
8. A. Appendix
1. Anatomy of a Goroutine Error
2. Race Detection
3. pprof
9. Index
Concurrency in Go
Tools and Techniques for Developers
Katherine Cox-Buday
剩余330页未读,继续阅读
资源评论
大师兄技术私享
- 粉丝: 9
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功