chicken-users
[Top][All Lists]
Advanced

[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


From: Joerg F. Wittenberger
Subject: Re: [Chicken-users] How to avoid busy waiting when using tcp-accept and threads?
Date: 28 Feb 2003 14:17:17 +0100
User-agent: 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...

/Jörg
-- 
The worst of harm may often result from the best of intentions.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]