On Jan 3, 3:22 pm, gervaz <ger...@gmail.com> wrote: > On 3 Gen, 17:47, de...@web.de (Diez B. Roggisch) wrote: > > > > > gervaz <ger...@gmail.com> writes: > > > On 31 Dic 2010, 23:25, Alice Bevan–McGregor <al...@gothcandy.com> > > > wrote: > > >> On 2010-12-31 10:28:26 -0800, John Nagle said: > > > >> > Even worse, sending control-C to a multi-thread program > > >> > is unreliable in CPython. See "http://blip.tv/file/2232410" > > >> > for why. It's painful. > > > >> AFIK, that has been resolved in Python 3.2 with the introduction of an > > >> intelligent thread scheduler as part of the GIL release/acquire process. > > > >> - Alice. > > > > Ok, but then suppose I have multiple long running threads that I want > > > to delete/suspend because they are tooking too much time, which > > > solution do you propose? > > > If possible, use multiple processes instead. > > > Diez- Nascondi testo citato > > > - Mostra testo citato - > > Multiple processes, ok, but then regarding processes' interruption > there will be the same problems pointed out by using threads? >
No. Processes can be terminated easily on all major platforms. See `os.kill`. Jean-Paul -- http://mail.python.org/mailman/listinfo/python-list