[Tinyos-help] About TinyOS scheduler

Tony Mancill tmancill at wsu.edu
Tue Feb 27 22:59:24 PST 2007


gsaxena at oakland.edu wrote:
> I would like to know how to incerase the size of scheduler task queue (default is 7). Also what changes to be made to make the scheduler a priority based? there are papers on this but is there any implementation available so that we can directly incorporate this.
> 
> Thanks
> Gaurav

Hi Gaurav,

Take a look at /opt/tinyos-1.x/tos/system/sched.c (starting at line 64).
 You should only have to define TOSH_MAX_TASKS_LOG2 in your Makefile to
something between 1 and 8, depending on whether you want 2, 4, 8, 16, 32
etc. and then recompile.

You would add this to your Makefile with a line like:

	CFLAGS += -DTOSH_MAX_TASKS_LOG2=6

Hope that helps,
tony


More information about the Tinyos-help mailing list