[Tinyos-help] Scheduler
Philip Levis
pal at cs.stanford.edu
Fri Mar 2 09:09:48 PST 2007
On Mar 2, 2007, at 6:25 AM, Min Guo wrote:
> Anyone knows how the scheduler schedule multiple function calls?
> E.g. in the RealMainP component, while Boot.booted() is signaled,
> the Boot.booted() events in the connected components will be
> executed, but how? - Since there is only one thread, are they
> executed in a liner sequence? What is the scheduler's mechanism to
> manage this?
>
In nesC lingo, this is called "fan-out." The TinyOS programming
manual goes into the details. The nesC paper is also a good
reference. The short answer is that they are executed one-by-one. The
tricky part is the return value.
Phil
More information about the Tinyos-help
mailing list