Data distribution by frequency

Huaiyu Zhu hzhu at users.sourceforge.net
Mon Oct 9 21:57:35 EDT 2000


On Sun, 08 Oct 2000 19:24:57 GMT, Greg Fortune <gfortune_ewu at ispchannel.com>
wrote: 
>
>Note the frequency.  The items need distributed based on that frequency.
>ie, Obj1 gets regular slots on regular time intervals.  Obj2 and 4 should
>get reasonably regular intervals where they fit in.  Obj3 gets what is left.
>I just need it to correctly divide up the pings to the main router and the
>modem so it doesn't ping the router twice and then the modem once and
>then...

Why not just start a thread for each object.  Let it do its bit and sleep
for the specified time between activities.  If the activities's take little
time compared with sleep time, that's pretty much what you want.

Huaiyu



More information about the Python-list mailing list