[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] How to avoid busy waiting when using tcp-accept and
Joerg F. Wittenberger
Re: [Chicken-users] How to avoid busy waiting when using tcp-accept and threads?
28 Feb 2003 14:17:17 +0100
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)
felix <address@hidden> writes:
> Joerg F. Wittenberger wrote:
> > no thread to ready to run. The timeout value should be exactly until
> > the next real time event (threads-sleep!) is due, which then should be
> > delivered.
> There is no exact time-slice, I'm afraid. The interrupt checks inserted
> into the code may not be distributed evenly among the compiled code.
> We can perhaps use an approximate value, though.
That's what I thought of for now. In the longer run, the compiler
could be extended to compile into monotones (C functions which
complete in constant time). Those could be scheduled...
The worst of harm may often result from the best of intentions.