Mailing List Archive

real time scheduler
Is there a module for scheduling events in real time? I have events
that need to be repeated indefinitely, each at a given time period. The
periods are large (at least one minute) and precision requirements are
not that great (within a few seconds). Is anyone aware of code to do
this?

--
Bryan Van de Ven
Applied Research Labs
University of Texas, Austin
real time scheduler [ In reply to ]
Bryan VanDeVen wrote:

> Is there a module for scheduling events in real time? I have events
> that need to be repeated indefinitely, each at a given time period. The
> periods are large (at least one minute) and precision requirements are
> not that great (within a few seconds). Is anyone aware of code to do
> this?

I wrote a midi scheduler based on the priority queues described in
Guido's python book. My biggest problem was the latency - I tried
a few mechanisms, including tk's 'after' and a mixture of long and short
sleeps - the best was a tight loop polling for the next time event.

Have a look at the source and ignore the midi stuff (will only run under
SGI and Python 1.2-1.4 anyway)

http://anusf.anu.edu.au/~sjr/midiplayer.py
real time scheduler [ In reply to ]
On Tue, 13 Apr 1999, Bryan VanDeVen wrote:
> Is there a module for scheduling events in real time? I have events
> that need to be repeated indefinitely, each at a given time period. The
> periods are large (at least one minute) and precision requirements are
> not that great (within a few seconds). Is anyone aware of code to do
> this?

I saw EventLoop module somewhere on ftp.python.org (or was it
Contributer.html?) Pretty simple, but may be adequate.

> --
> Bryan Van de Ven
> Applied Research Labs
> University of Texas, Austin
>

Oleg.
----
Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/
Programmers don't die, they just GOSUB without RETURN.