Does TinyOS use multipule threads or not? I see the following sentences in
the programming manuel:

   "The problem with threads in embedded systems is that they require a
good deal of RAM." ... "TinyOS
   therefore takes the opposite approach. Rather than make everything
synchronous through threads,
   operations that are split-phase in hardware are split-phase in software
as well. This means that
   many common operations, such as sampling sensors and sending packets,
are split-phase. An important
   characteristic of split-phase interfaces is that they are bidirectional:
there is a downcall to start the operation,
   and an upcall that signifies the operation is complete."

Does that mean there is only one thread in every application? When a
function A calles function B, will A
just inline the codes of B at the calling point? However, if so why do we
need to consider about the preemptive
things - since there is only one thread, where do the interupts come from?


Kind regards,
Min
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to