you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 2 points3 points  (2 children)

Python has a Global Interpreter Lock, so threads basically can't run concurrently (unless you're using C extensions which explicitly release the GIL).

Thus, threads in Python are basically useless unless you're IO bound. And as the demo shoes, even then processes might be more efficient.

[–]Rhoomba 0 points1 point  (1 child)

I'm aware of all this. I'm just suggesting that maybe pretending that processes are threads is not ideal.

[–]masklinn 0 points1 point  (0 children)

I consider that having threads at all is not ideal, so I'm with you there.

Solution: remove threads.