Interrput a thread

gervaz gervaz at gmail.com
Mon Jan 3 15:22:59 EST 2011


On 3 Gen, 17:47, de... at web.de (Diez B. Roggisch) wrote:
> gervaz <ger... at gmail.com> writes:
> > On 31 Dic 2010, 23:25, Alice Bevan–McGregor <al... at 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?
Mattia


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /