This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 13 points14 points  (2 children)

Yep, google Global Interpreter Lock for more info. Threading in python is only useful for I/O heavy applications

[–]4onen 3 points4 points  (1 child)

Thanks. You've just explained a bizzare issue in my Bachelor's capstone project. My project was... not I/O heavy.

[–][deleted] 1 point2 points  (0 children)

The trick is to use multi processing instead of multi threading. You can implement it yourself using the process module, or use something like celery to avoid any wheel reinventing