Re: libc Sleep api performs a busy waiting

2010-03-09 Thread Thomas Heller
Joe Fox schrieb: > Hi, > > actually i have simplified my scenario a lot here , > > In my actual case , i have to call a C-api which blocks on c select , in a > separate thread. > > my thread is getting struck in that api , and thus blocking all the other > threads. > Can you point to something

Re: libc Sleep api performs a busy waiting

2010-03-08 Thread Joe Fox
Hi, actually i have simplified my scenario a lot here , In my actual case , i have to call a C-api which blocks on c select , in a separate thread. my thread is getting struck in that api , and thus blocking all the other threads. Can you point to something which will help me call this blockin

Re: libc Sleep api performs a busy waiting

2010-03-08 Thread News123
Hi Steve, Steve Holden wrote: > Mahesh wrote: >> Hi, >> >> I am having a problem while using sleep function from libc , the >> thread in which i am calling it is getting struck and not allowing >> other threads to execute. Here is a simple code that i am trying to >> exeute >> >> import threadin

Re: libc Sleep api performs a busy waiting

2010-03-08 Thread Steve Holden
Mahesh wrote: > Hi, > > I am having a problem while using sleep function from libc , the > thread in which i am calling it is getting struck and not allowing > other threads to execute. Here is a simple code that i am trying to > exeute > > import threading > import time > import dl > > > def