ConcurrentProgrammingWithGo
ConcurrentProgrammingWithGo copied to clipboard
Exercise 10.2 refers to incorrect listing
Change listing 10.2 so that the work queue channel between the main() goroutine and the worker pool has a buffer of 10 messages. Doing so will give you a capacity buffer so that when all the goroutines are busy, some of the requests are queued before they can be picked up.
Listing 10.2 demonstrates loop-level parallelism; the exercise means listing 10.12.
Hi there, Thank you for purchasing the book. Please note that the exercises source code are found under the exercises directory. For this exercise, it's referring to listing 10.2 found at: https://github.com/cutajarj/ConcurrentProgrammingWithGo/tree/main/exercises/chapter10/exercise10.2