Time limited threads?

Aahz Maruch aahz at panix.com
Wed Jan 31 11:55:15 EST 2001


In article <9591b8$2if at news.or.intel.com>,
Miki Tebeka <tebeka at lycosmail.com> wrote:
>
>Is there a way I can limit a threads execution time? (and then resume it
>later?)

Not directly in standard Python.

>Background:
>We're giving an exercise in scheduling.
>I'd like to give the students a service that runs one thread for a given
>time quota.
>Then they will write the scheduler.

You might try looking at microthreads.
-- 
                      --- Aahz (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"People sometimes focus too much on the fact of communication rather than
the substance of communication."  --Dave Morton



More information about the Python-list mailing list