paint-brush
Concurrent Programming in Python is not what you think it is.by@melvinkcx2
50,108 reads
50,108 reads

Concurrent Programming in Python is not what you think it is.

by Melvin KohSeptember 30th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Concurrent Programming in Python is not what you think it is. Concurrent programming is not equivalent to parallel execution. Multi-threading in Python might not be doing what you expect to be. Multi-Threading is supported by introducing a Mutex known as Global Interpreter Lock (aka GIL) It is to prevent multiple threads from accessing the same Python object simultaneously. This make sense, you wouldn’t want someone to mutate your object while you are processing it. In this article, I will first walk you through the distinction between concurrent programming and parallel execution, discuss about Python built-ins.
featured image - Concurrent Programming in Python is not what you think it is.
Melvin Koh HackerNoon profile picture
Melvin Koh

Melvin Koh

@melvinkcx2

L O A D I N G
. . . comments & more!

About Author

Melvin Koh HackerNoon profile picture
Melvin Koh@melvinkcx2

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite