Re: Question on threads

2008-04-11 Thread John Nagle
Steve Holden wrote: > Jonathan Shao wrote: >> On Fri, Apr 11, 2008 at 3:29 PM, Steve Holden <[EMAIL PROTECTED] >> > wrote: >> >> Jonathan Shao wrote: >> >> Hi all, >> I'm a beginner to Python, so please bear with me. >> Is there a way of guar

Re: Question on threads

2008-04-11 Thread Grant Edwards
On 2008-04-11, Steve Holden <[EMAIL PROTECTED]> wrote: > Yes - you are calling it before you have started ALL your > threads, thereby making hte main thread wait for the end of > thread 1 before starting the next. An impressive demonstration > of thread synchronization, Well, that's one way to ge

Re: Question on threads

2008-04-11 Thread Steve Holden
Jonathan Shao wrote: > On Fri, Apr 11, 2008 at 3:29 PM, Steve Holden <[EMAIL PROTECTED] > > wrote: > > Jonathan Shao wrote: > > Hi all, > I'm a beginner to Python, so please bear with me. > Is there a way of guarenteeing that all created th

Re: Question on threads

2008-04-11 Thread Jonathan Shao
On Fri, Apr 11, 2008 at 3:29 PM, Steve Holden <[EMAIL PROTECTED]> wrote: > Jonathan Shao wrote: > > > Hi all, > > I'm a beginner to Python, so please bear with me. > > Is there a way of guarenteeing that all created threads in a program > > are finished before the main program exits? I know that

Re: Question on threads

2008-04-11 Thread Steve Holden
Jonathan Shao wrote: > Hi all, > > I'm a beginner to Python, so please bear with me. > > Is there a way of guarenteeing that all created threads in a program are > finished before the main program exits? I know that using join() can > guarentee this, but from the test scripts I've run, it see