10 Concurrency patterns
This chapter covers
- Decomposing programs by task
- Decomposing programs by data
- Recognizing common concurrency patterns
When we have a job to do and many helping hands, we need to decide how to divide the work so that it’s completed efficiently. A significant task in developing a concurrent solution is identifying mostly independent computations—tasks that do not affect each other if they are executed at the same time. This process of breaking down our programming into separate concurrent tasks is known as decomposition.
In this chapter, we shall see techniques and ideas for performing this decomposition. Later, we’ll discuss common implementation patterns used in various concurrent scenarios.
10.1 Decomposing programs ...
Get Learn Concurrent Programming with Go now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.