yielding control

Rob Hall bloke at ii.net
Tue Oct 15 23:32:36 EDT 2002


Interestingly, the optimal sleep in this case seems to be around 0.01.  I
call is around once per second.   I actually get a higher average
thoughput - about an extra 500 sets/sec - while the max thoughput is lower,
but the min thoughput is higher!


Rob Hall <bloke at ii.net> wrote in message
news:3dacd826$0$2001 at echo-01.iinet.net.au...
> That works perfectly.  Thanks all.
>
> >
> > Better do a sleep(0.0001), the OS get's a hold of the cpu,
> > and the actual sleep time is so small as to be almost zero.
> >
> > -gus
> >
>
>





More information about the Python-list mailing list