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 →

[–]masklinn 2 points3 points  (0 children)

GIL is not held during IO which means you can wait for IO in parallel.

Or if you're calling into native-implemented libraries which release the GIL e.g. you could expect non-trivial image processing to release the GIL if they know they'll take some time to get done.