Threads sleeping all instead of just one.
steve at holdenweb.com
Wed Jan 18 18:18:16 CET 2006
Vaclav Havlik wrote:
> Hello. Could you advise me about this, please?
> I write a multi-thread program using the 'threading' module. Moreover, I use C++ extension. Two threads work inside this C++ extension in such way that one thread waits for the other to do something. However it seems that ALL python is stopped by the first thread stopping. And not that the one thread stops and the other runs to wake the former up, as it is intended in the C++ extension.
> Is it the problem, that I am not using Python's synchronization means, but C++'s ?
> Thank you very much. V.
Sounds to me like you need to learn how to release the GIL (global
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/
More information about the Python-list