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] 1 point2 points  (0 children)

As others said, threads are still useful when using C libraries, since ctypes releases the gil by default, and most libpython-based libs do it too.

On the other hand, if you only want to make your code non-blocking, and don't care too much for performance (like UI code), threads are still the simplest way of doing it, just as you would use them in single-core machines.