Solving Producer/Consumer Problem of Concurrent Programming in Python

Solving Producer/Consumer Problem of Concurrent Programming in Python

In “Concurrent Programming in Python is not what you think it is”, I wrote about the notorious GIL in Python and did a simple experiment on existing concurrency mechanism in Python. Today, I’ll describe another common scenario in concurrent programming, the Producer/Consumer problem, with Python.