this post was submitted on 06 Aug 2023
23 points (100.0% liked)
Python
3222 readers
1 users here now
News and discussions about the programming language Python
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The GIL is a thread lock. It prevents threads from accessing the same memory space, eliminating race conditions and more importantly, keeping the reference counters correct so that the python garbage collector can correctly free memory (avoiding leaks)