Problem ... with threads in Python

Jeremy Jones zanesdad at bellsouth.net
Wed Oct 26 21:06:57 CEST 2005


Negoescu Constantin wrote:

> Hello.
>  
>     I know that Python is */not fully threadsafe/*. Unlike Java, where 
> threading was considered to be so important that it is a part of the 
> syntax, in Python threads were laid down at the altar of Portability. 
> But, i really have to finish a project  which uses multiple threads in 
> Python, and i shouldn't use the time.sleep() function.
>     Is there any posibility to use multiple threads without using the 
> time.sleep() function ? And if so, what that way should be ?
>  
> Best regards,
> _Cosmin

You might want to give us a little more detail on what you're trying to 
accomplish and how you're using sleep() so we'll be able to help you 
better.  Are you trying to use sleep() as a synchronization mechanism 
between threads?

- jmj



More information about the Python-list mailing list