[capi-sig] Threading

Pablo Yabo pablo.yabo at gmail.com
Wed Sep 5 17:42:58 CEST 2007


> > It's not the best solution but it's acceptable. The problem is that
> > Python code cannot use any native wait or suspend function.
>
> What do you mean by "native wait or suspend"?  When entering blocking
> OS calls such as os.wait, or even the stdio IO code, Python tries to
> release the interpreter lock, to enable other threads to run at the
> same time.


Great, I didn´t know that. I mean that if a thread waits for a condition of
another thread or sleeps but I think that they should release interpreter
lock also.

Thanks for you help.

Pablo Yabo
--
http://www.nektra.com


More information about the capi-sig mailing list