freeRTOS scheduling on esp32
Posted: Wed Jun 28, 2017 8:15 am
Hi All,
I am working on multiple tasks, i have around 6 tasks and would like to implement round robbin scheduling as follows.
task1 is at priority 6 and task2 to task 6 are at 5.
here is what i have done till now in brief. Each task is created after esp32 recieves the IP. Each tasks has log at the start that shows it is created. Each task also has a log inside there loop that shows whether it running or not.
I have enabled configUSE_TIME_SLICING to 1 in FreeRTOSConfig.h, as per my understanding this enables round robbin scheduling.
But somehow only task 1(Highest priority) and task 2, and task 3 are running. whereas task2 to task6 should run in round robbin.
Could someone let me know whether this is right and also is there any other way to schedule them.
Thank you
Paul
I am working on multiple tasks, i have around 6 tasks and would like to implement round robbin scheduling as follows.
task1 is at priority 6 and task2 to task 6 are at 5.
here is what i have done till now in brief. Each task is created after esp32 recieves the IP. Each tasks has log at the start that shows it is created. Each task also has a log inside there loop that shows whether it running or not.
I have enabled configUSE_TIME_SLICING to 1 in FreeRTOSConfig.h, as per my understanding this enables round robbin scheduling.
But somehow only task 1(Highest priority) and task 2, and task 3 are running. whereas task2 to task6 should run in round robbin.
Could someone let me know whether this is right and also is there any other way to schedule them.
Thank you
Paul