On Nov 11, 2004, at 7:31 AM, [EMAIL PROTECTED] wrote:

Hi all,

How are the preemption in tinyOS? It can simulate concurrency running
similar with unix, win9x dedicating a slice of time for each process in
memory. The event-model do it with tasks and frames?

I'd recommend reading the nesC paper, which can be found on the TinyOS website. It describes the TinyOS concurrency model in detail, as well as how nesC presents the model to a programmer.


The short answer is that TinyOS has a single stack. There is a run to completion task queue: tasks do not preempt one another. Interrupts can preempt tasks, however. Trying to draw an analogy to UNIX/Windows isn't very useful, given that TinyOS is for embedded low power network devices, and not for multitasking user systems. A closer analogy would be something like Click by Eddie Kohler when he was at MIT.

Phil


-------

"We shall not cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time."

- T. S. Eliot,  'Little Gidding'

_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to