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?
>
>
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?
>
>
"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
>
>> 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(
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
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
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)
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