On Wed, Jan 16, 2013 at 8:34 AM, mansooreh mollaie <[email protected]>wrote:

> Hi,
> I want to know how many task can be wait in task queue?
>

look in tos/system/SchedulerBasicP.nc  (task_id is uint8_t).

  uint8_t m_head;
  uint8_t m_tail;
  uint8_t m_next[NUM_TASKS];

Also NO_TASK is defined as 255, so valid task numbers are 0 through 254
(255 tasks)

The actual number allocated is controlled by...

    NUM_TASKS = uniqueCount("TinySchedulerC.TaskBasic"),

Only the actual number of tasks that actually exist are allocated task slot.


> I read somewhere seven task can be wait in queue?
>

Where did you read this?


> is it correct?
>

No absolutely not correct.


> it mean the FIFO queue can just keep seven task???
>

nope.


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



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to