is time.sleep a thread safe function?
Cliff Wells
logiplexsoftware at earthlink.net
Tue Mar 12 19:10:41 EST 2002
On 12 Mar 2002 15:47:10 -0800
Zihong Lu wrote:
> 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.
AFAIK, time.sleep() is thread-safe.
--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308 (800) 735-0555 x308
More information about the Python-list
mailing list