Threading

Gheorghe Postelnicu gheorghe.postelnicu at gmail.com
Thu Nov 30 10:37:40 EST 2006


Hi,

I have a very simple Python script that performs some batch processing
as follows: a list of system commands is set up in an automated way
and then each of the processes is launched separately using threads -
a basic producer-consumer thing.

I found a recipe on ASPN on how to intercept keyboard interrupts and
that is useful if I need to brutally kill the launching process.

However, my question regards killing the actual children threads -
they are spending lots of time in system calls, so I cannot insert
some while loop in a derived Thread class.

Any suggestions would be apreciated.

Thanks,
-- 
Gheorghe Postelnicu, PhD
MGH, Harvard Medical School



More information about the Python-list mailing list