The short answer is no.
Tasks do not preempt. Interrupts can execute (small amounts of) code
in an interleaved manner, but newly posted tasks will not exec until the
current one completes. The best approach is to break up the long task
into shorter pieces and sequentially post them as tasks.
MS

Cucco Cristiano wrote:
Hi all,

I'm dealing with an algorithm for security key generation to be applied on 
mica2 motes.
The computation appeared to be very long (about 40sec) and in that period of 
time the mote could not execute any further task.
Is there any implemented solution in TinyOS which would allow the algorithm to 
run concurrently with other tasks, like in a multithreading environment?

Thank you in advance,
Cristiano

_______________________________________________
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