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

Michael Schippling schip at santafe.edu
Mon Dec 8 11:02:43 PST 2008


Thanks for the terminology clarification.
I guess I should read that book, ne?
MS


Eric Decker wrote:
> 
> 
> On Mon, Dec 8, 2008 at 11:13 AM, Michael Schippling <schip at santafe.edu 
> <mailto: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
> 
> 

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew



More information about the Tinyos-help mailing list