Re: need to suspend/resume a child thread

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • M.-A. Lemburg

    Re: need to suspend/resume a child thread

    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.D atabase.Adapter ... http://zope.egenix.com/
    >>mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
    _______________ _______________ _______________ _______________ ____________

    :::: Try mxODBC.Zope.DA for Windows,Linux,S olaris,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
Working...