Re: Do thread die?

2005-09-22 Thread Maurice LING
Frithiof Andreas Jensen wrote: > "Maurice LING" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > >>I do have another dumb question which is OT here. Say aFunc method >>instantiates a SOAP server that serves forever, will it prevent bFunc >>from running as a separate thread? > >

Re: Do thread die?

2005-09-22 Thread Maurice LING
Frithiof Andreas Jensen wrote: > "Maurice LING" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > >>I do have another dumb question which is OT here. Say aFunc method >>instantiates a SOAP server that serves forever, will it prevent bFunc >>from running as a separate thread? > >

Re: Do thread die?

2005-09-20 Thread Frithiof Andreas Jensen
"Maurice LING" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I do have another dumb question which is OT here. Say aFunc method > instantiates a SOAP server that serves forever, will it prevent bFunc > from running as a separate thread? If the SOAP server thread never sleeps or b

Re: Do thread die?

2005-09-17 Thread Maurice LING
> >> My current implementation may be ugly. I have a class >> >> class myThread(threading.Thread): >> def __init__(self, func): >> self.func = func >> threading.Thread.__init__(self) >> def run(self): >> print '%s function running' % self.func >> self.func(

Re: Do thread die?

2005-09-17 Thread Steve Horsley
Maurice LING wrote: > Hi, > > I just have a simple question about threads. My classes inherits from > threading.Thread class. I am calling threading.Thread.run() method to > spawn a few threads to parallel some parts of my program. No thread > re-use, pooling, joining ... just plainly spawn a t

Re: Do thread die?

2005-09-17 Thread Bryan Olson
Maurice LING wrote: > Hi, > > I just have a simple question about threads. My classes inherits from > threading.Thread class. I am calling threading.Thread.run() method to > spawn a few threads to parallel some parts of my program. No thread > re-use, pooling, joining ... just plainly spawn a

Re: Do thread die?

2005-09-17 Thread Sybren Stuvel
Maurice LING enlightened us with: > So, at the end of run(), what happens to the thread? Just die? Yep. > While I am on it, can threading.Thread.run() accept any parameters? Nope. Pass them to the constructor and remember them. > class myThread(threading.Thread): > def __init__(self, func)

Do thread die?

2005-09-16 Thread Maurice LING
Hi, I just have a simple question about threads. My classes inherits from threading.Thread class. I am calling threading.Thread.run() method to spawn a few threads to parallel some parts of my program. No thread re-use, pooling, joining ... just plainly spawn a thread, run a routine. So, at th