Interrput a thread

Diez B. Roggisch deets at web.de
Mon Jan 3 11:47:41 EST 2011


gervaz <gervaz 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



More information about the Python-list mailing list