Limit process run time - SIGALARM equiv on win32

Gerhard Häring gerhard.haering at gmx.de
Fri Aug 23 04:26:21 EDT 2002


If I want to limit the run time of a process to say, one minute, I can
use SIGALARM on Unix, and let the process commit suicide when the
alarm handler gets called.

How would I do that on Windows? Is there a solution besides using
multithreading and hardcore os._exit()?

How would I do that with Jython?

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))



More information about the Python-list mailing list