Concurrency 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.

What is the producer/consumer scenario?

Imagine you are at…

In this article, I will first walk you through the distinction between concurrent programming and parallel execution, discuss about Python built-ins concurrent programming mechanisms and the pitfalls of multi-threading in Python.

Understanding Concurrent Programming vs Parallel Execution

Concurrent programming is not equivalent to parallel execution, despite the fact that these two terms are often being used…

Melvin K.

Software Engineer | Maintainer of Python graphql-utilities | Creator of

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store