Hi friends,
How Z-stack is handling the different tasks. is it roundrobin schedular? if i add two new tasks in osalInitTasks( void ) function how it wait for different events in different tasks? anybody have idea let me know?
Regards,
leo
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi friends,
How Z-stack is handling the different tasks. is it roundrobin schedular? if i add two new tasks in osalInitTasks( void ) function how it wait for different events in different tasks? anybody have idea let me know?
Regards,
leo
The Z-Stack "scheduler" is very simple -- each time a task returns control to OSAL, the search of the task list starts at the first entry in the tasksArr[] table. Therefore, macTask is the highest priorty task and will always have the opportunity run before any others. I would suggest that you add your 2 tasks to the bottom of the table and call their Init functions from the bottom of osalInitTasks(). Typically, user-defined tasks should be added in this way (lowest priority).