is time.sleep a thread safe function?

Zihong Lu zlu at extremenetworks.com
Tue Mar 12 18:47:10 EST 2002


Can someone please tell me the answer?  

Recently, we have seen some weird behaviors in our python application
in Solaris 2.6, 2.7,and 2.8 platform.  The application is a web based
server, that uses threads heavily.  It runs fine in Linux and win32
platforms, but in Solaris, it stopped accepting after ran for couple
of hours.  One of our guesses is that the time.sleep() used through
out our application is not thread safe.  Can any one please help us
eliminate/confirm this factor?  Thanks.


-Zihong



More information about the Python-list mailing list