[Tinyos-help] A question on TinyOS scheduling

Bin Lei leibin.nju at gmail.com
Tue Jul 24 06:38:51 PDT 2007


Dear All

Here's a question about scheduling of TinyOS:
Event handler can preempt CPU from task, that's definite,
but how about an event handler preempt another event handler?
E.g. handler1 has 3 steps 11,12,13 while handler2 has 3 steps 21,22,23
respectively.
Handler 1 execute first and goest to 11, 12, while suddenly handler2 is
triggered by an interrupt?
What happens? from my understanding it should be: 11, 12, *21, 22, 23*, 13
Is that true?

b.t.w., which module of tinyos core implement the scheduling algorithm for
event handlers?

Many thanks.

-- 
Regards,
Benjamin (Bin) Lei (雷斌)
Department of Computer Science and Technology, Nanjing University
Tel: 8625-83594683
Cell: 86-13813909880
Addr.: Room 508, Mengmingwei Bldg, Nanjing Univeristy, Nanjing, P.R.C.210093
E-mail : leibin.nju at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070724/64a889be/attachment.html


More information about the Tinyos-help mailing list