[Tinyos-help] can current task be pre-emptible by any _sync_ event?

Eric Decker cire831 at gmail.com
Mon Dec 8 10:30:26 PST 2008


On Mon, Dec 8, 2008 at 11:13 AM, Michael Schippling <schip at santafe.edu>wrote:

> I believe that all your assertions are correct, however it is
> possible for the "higher level sync events" to be executed
> directly from the interrupt handler and thus in interrupt context,
> rather than from a new task.


Any code executed from interrupt context needs to be labelled using async
and is the essence of what is meant by async.   So "higher level sync
events"
is confusing in this context.


> But the take-away point is that tasks should not be long-running
> because they may block events signaled from other "low level" tasks.


This is also stressed in Phil's book about programming TinyOS.  Has Allan
taked
a gander at it?

http://www.tinyos.net/tinyos-2.x/doc/pdf/tinyos-programming.pdf

eric


> MS
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20081208/a265fb4e/attachment.htm 


More information about the Tinyos-help mailing list