"atomic" shuts off interrupts for the duration of the block.
Since only one task can run at a time, and it can only be
interrupted by hardware -- mostly the async functions --
this means that anything in an atomic block will run to
completion before any other code gets executed. I think
this is your option #2.

MS

Ake Tangkananond wrote:
I would like to know which is correct
1. 2 atomic block will not preempt each other
2. when atomic block is executing, it cannot be preempted eg. by another async block

Thank you in advance. :D

Best,
Ake Tangkananond


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

Reply via email to