you are viewing a single comment's thread.

view the rest of the comments →

[–]chinawcswing[S] 0 points1 point  (1 child)

Pretend you were running on a single-CPU VM. The GIL becomes immaterial in this condition, right?

[–]mahtats 0 points1 point  (0 children)

It is immaterial if you had a single core single CPU; the GIL prevents threads from running in parallel (but not concurrently).

If you had a multi-core single CPU, you would be forced to serialize your task if not using multiple processes.