> The GIL also means that whilst CPython can be multi-threaded, only 1 thread can be executing at any given time.
How does this make sense? What's the point of having multiple threads then?
How does this make sense? What's the point of having multiple threads then?
In practice, this doesn’t work particularly well, as you rarely have massively I/O bound things in Python.
Only being able to run a single thread of "logic" basically makes that impossible, as you need to usually do some computation to figure out what bytes to send/receive, do something with the results, and so on.
Citation needed.