[Tinyos-help] sync and async event

Pablo Gil Montaño pgilmon at yahoo.es
Tue Sep 12 04:02:43 PDT 2006


As far as I know, tasks do not preempt other tasks, but events can always preempt tasks or events no matter whether they are async or not. Tasks are executed only when there is nothing else to do, and can be preempted by events, but not by other tasks.
If someone knows exactly the difference between async and sync events please pots, I don't see any difference.

yicheng <y-jie at northwestern.edu> escribió:              Hi Folks,
   
  I get some questions about event:
  1. Is ‘Timer fired’ event or ‘sendDone’ sync event? Is it true that by default, if an event isn’t explicitly declared as ‘async’, then it’s synchronous, which means it can’t interrupt other events or tasks?
  2. If the above is true - all events that aren’t explicitly declared as ‘async’ are synchronous events, then are they all in the same level of priority? what’s the difference between ‘event’ and ‘task’?
  Thanks!
   
  Best Regards!
  Yicheng
  
  _______________________________________________
Tinyos-help mailing list
Tinyos-help at Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

 		
---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060912/f2680162/attachment.htm


More information about the Tinyos-help mailing list