DEV Community

Discussion on: Explain python global interpreter lock (GIL) Like I'm Five

Collapse
 
docoprusta profile image
Soma Györe

Great thanks. If I understand it correctly the GIL is kind of an automatic mutex implementation. Is it correct?

Collapse
 
rhymes profile image
rhymes

Exactly, it's a giant mutex that serialises access to non thread safe resources.

Thread Thread
 
idanarye profile image
Idan Arye

And in Python - everything except IO is considered non-thread-safe.