The MISL research lab at UCC & InfoLab21 at Lancaster University have developed a new scheduler for TinyOS-2.x as a tinyos-2.x-contrib module.
By adding task preemption the new scheduler is capable of interrupting non-critical tasks and begin processing tasks of greater priority immediately. Preemptive schedulers can make it easier for users to meet their application timing constraints.
The new scheduler allows programmers to define a TinyOS task with a specific priority. 5 task priority levels are possible one of which supports the basic TinyOS task.