killing thread ?
Martin v. Löwis
martin at v.loewis.de
Sat Jan 25 06:24:09 EST 2003
Paul Rubin <phr-n2003b at NOSPAMnightsong.com> 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.
How about memory usage?
Regards,
Martin
More information about the Python-list
mailing list