Hello,

I understand that not all events preempt tasks, e.g., the conventional
Timers.
However, I often need them to behave as interruptions, with the same
semantics shown in the "Holistic paper".

Questions:
1- to achieve the desired behavior I'd need to work in a much lower level,
right?
2- do these synchronous events end up in the task queue?

I assumed that they do end up in the task queue.
That said, I included in the file SchedulerBasicP.nc (and corresponding
interface) the following command:

command bool Scheduler.isEmpty ()
{
    return m_head == NO_TASK;
}

Hence, instead of continuously re-scheduling a heavy duty task, I first
check if there is a pending task (e.g. Timer.fired).
It seems to be working correctly, the sample application boosted 10x, but I
am not 100% sure about my approach.

Thanks for any feedback,
Francisco
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to