[coyotos-dev] Sleep for interval

Jonathan S. Shapiro shap at eros-os.com
Sun Sep 30 14:59:23 EDT 2007


On Sun, 2007-09-30 at 11:34 -0700, Charles Landau wrote:
> >Be that as it may, the issue at hand is the sleep interface. What would
> >you propose as a better interface here?
> 
> Easy: sleep the returnee instead of the invoker.
> Perhaps what this means in Coyotos is "send a message to the reply 
> endpoint after the specified time".

Unfortunately, this seems to require that the kernel allocate infinite
storage.

Some questions:

  1. What should the kernel do if, at the time the sleep() call occurs,
     the returnee is not in the receiving state?

  2. What about if the returnee exits the receiving state before the
     wakeup message arrives?

  3. What about if multiple sleeps() are performed by different parties
     naming the same returnee?

Unless we can find a way to handle all of these without allocating
per-request storage, I don't think this specification can be achieved.
Unfortunately, I don't see how to avoid per-request storage here.
-- 
Jonathan S. Shapiro
Managing Director
The EROS Group, LLC
www.coyotos.org, www.eros-os.org



More information about the coyotos-dev mailing list