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

libc Sleep api performs a busy waiting

2010-03-08 Thread Joe Fox
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 dummy1(): a=dl.open('/lib/libc.so.6