[Tinyos-devel] issue with ResourceRequested

Eric Decker cire831 at gmail.com
Sun Aug 10 20:37:27 PDT 2008


On Sun, Aug 10, 2008 at 10:31 AM, Philip Levis <pal at cs.stanford.edu> wrote:

>
> Again, my concern with an "othersWaiting" is that it only solves the
> particular case you're concerned with, where you want a default owner for
> power management, then one user which is higher priority than the others.
> Because othersWaiting does not tell you who is waiting, you can't use it for
> more general priority schemes.


othersWaiting on second thought is actually a work around for the hole I was
originally pointing out in the way Resource and ResourceRequested work.

If A owns the resource and other requester comes in, A will be notified.
 However if A is in the process of being granted but has not gotten
ownership yet and another requester comes in, A is not notified.  There is a
timing race.

Perhaps that I should figure out how to fix that instead.

eric


>
> I'd recommend trying to write a PriorityArbiter, which grants the power
> lock in terms of priorities specified at compile-time. You could then add a
> supplemental, PriortyArbiter-specific, interface, which allows users to
> query the status of the priority queue.
>
> Phil
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
Autonomous Systems Lab
Jack Baskin School of Engineering
UCSC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20080810/21d72847/attachment.htm 


More information about the Tinyos-devel mailing list