Concurrent Programming in Python is not what you think it is.by@melvinkcx2
50,045 reads
50,045 reads

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

by Melvin Koh4mSeptember 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.

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Concurrent Programming in Python is not what you think it is.
Melvin Koh HackerNoon profile picture
Melvin Koh

Melvin Koh

@melvinkcx2

Software Engineer | Maintainer of fastapi-events

About @melvinkcx2
LEARN MORE ABOUT @MELVINKCX2'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Melvin Koh HackerNoon profile picture
Melvin Koh@melvinkcx2
Software Engineer | Maintainer of fastapi-events

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