Grokking Concurrency in Python
Vote

0% completed

​

Blocking Queue and Read-Write Lock

Write two classes that many threads can share safely, and build both from one primitive. A condition variable is an object that lets a thread wait, while it holds a lock, until another thread announces that some state has changed. Conditions, Events, Semaphores and Barriers introduced threading.Condition. A small design choice decides whether such a class works: a queue built with one condition variable stalled in all of 20 test runs, while the same queue built with two never stalled.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content