killing thread ?

Ype Kingma ykingma at accessforall.nl
Sat Jan 25 07:34:31 EST 2003


Paul Rubin wrote:

> "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.

And how would calls to eg. C (CPython) or Java (Jython) code be handled?

-- 
email at xs4all.nl




More information about the Python-list mailing list