Hi all, I was just wondering if someone can help me understand couple of things
about using the Scheduler in TinyOS 2.x.

I used the interface Scheduler and wired it to the SchedulerBasicP. What I am
confused about, how do I actually add tasks to the scheduler?

What I have is a method that processes tasks, it either sends them to other
nodes, forks them or kills them. I was storing all tasks in an array, and by
using an infinite loop, i would go through all the tasks, but using this loop, I
was not able to send more than one task, I think because tinyos was treating the
loop as a big task, therefore, it did not actually send till the array was empty
and there was no more tasks to process; So now I am trying to use a Scheduler
instead but I am not really sure I understand how it can be used, or to be more
precise, I don't really understand where/how the tasks are stored so then I can
call Scheduler.runNextTask();

Also, Scheduler.taskLoop(); is an infinite loop, so does anyone think this will
effect radio communication? so if tasks were to be sent over the radio
communication will this loop be stopped till the send is done, and then be
signaled back to resume where it stopped at last? If not, it seems like I would
end up having the same problem I was having by using the original loop I had in
the beginning.

If this is not clear, please tell me and I'll try to explain it better, but I
really need help to understand how I can use the Scheduler. Any help will be
really really appreciated.

Thank you.

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

Reply via email to