Carl J. Van Arsdall wrote: > placid wrote: > > Hi all, > > > > In Python, Threads cannot be paused, i remember reading this somewhere, > > so is there a way around this ? > > > > When you say paused do you mean paused by an external source or paused > by a call internal to the thread? There are plenty of synchronization > constructs for making threads wait: Check out Events and Conditions
I have a thread that has a job Queue, it continuosly polls this queue to see if there are any jobs for it, what i really wont to be able to do is, when the queue is empty, i want the thread to pause (or more technical, i want the thread to block) until the queue gets populated again. Is this possible ? > > -carl > > > > -- > > Carl J. Van Arsdall > [EMAIL PROTECTED] > Build and Release > MontaVista Software -- http://mail.python.org/mailman/listinfo/python-list