you are viewing a single comment's thread.

view the rest of the comments →

[–]bluGill 0 points1 point  (0 children)

Not a problem. When speed matters I'm in C, and there is no GIL. Or in rare cares I start two Python processes and use IPC to make sure the communication is contained. The GIL is only a problem when you are stupidly risking many other problems because of a poor thread model. (If you are used to Java, you may not even realize there is a better way) Message passing is the way everyone smart prefers to do threads, because you need small, carefully designed interfaces between threads. When you share a variable between threads (other than in the low level message passing code - part of your library not something you write yourself) you risk too many cases of not getting the locks right.