need to suspend/resume a child thread
M.-A. Lemburg
mal at egenix.com
Thu Nov 13 04:19:35 EST 2008
On 2008-11-13 02:57, scsoce wrote:
> A child thread has a long-time executions, how to suspend it and resume
> back the orignial place ? I know it' nature to use singal, but child
> thread cannot get signal as Python Manual say. And i dnt like to check
> status variable as the long-time executions can not or be dirty to stop
> to do check.
I'm not sure I understand... the OS will take care of all this
for you.
If you want to suspend the execution of a thread you have
to explicitly code for this in the code running in that thread
and use e.g. a semaphore or thread lock.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Nov 13 2008)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
More information about the Python-list
mailing list