killing thread ?

Paul Rubin phr-n2003b at NOSPAMnightsong.com
Sat Jan 25 05:29:59 CET 2003


"Martin v. Löwis" <martin at v.loewis.de> writes:
> > so, what about a new PEP : extend the exec method by limiting
> > the execution time and memory usage ...
> 
> That PEP would have to come with a suggested implementation strategy.

Neither seems terribly difficult; just have the interpreter keep track
of how much time and memory have been consumed.  CPU time may be hard
to measure on a per-thread basis, but certainly it can count byte
codes executed, which should be enough for the purpose.





More information about the Python-list mailing list