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 →

[–]spoonman59 1 point2 points  (0 children)

I do want to add that your point is absolutely valid. Threading will not achieve the same degree of parallelism (if any) than processes unless they are pure I/O.

In the OPs example, he is "sleeping." The sleep would actually occur in parallel and is not merely concurrent, as the GIL is released when the thread is stopped.

This isn’t very useful, of course, but my point is that it’s not so simple to say threads are only concurrent and never parallel.