Page 1 of 1

freeRTOS cpu scheduling

Posted: Sun Feb 03, 2019 12:51 pm
by snahmad75
Hi,

Can some one tell me how can i change freeRTOS cpu scheduling on ESP32 config.

Is it preemptive multitasking by default which is round robin scheduling .


I found out that in my application. I am using both cpus. CPU0 is assigned to WiFi,

for rest of tasks including LWIP I specify tskNO_AFFINITY .

Initially I specify higher priority to two of my Tasks. but it system is very busy with Data Processing these two Tasks/threads starve low priority Tasks. now I specify same priority to all Tasks. at-least they don't starve. every Task gets chance to get executed.

Is there benefit to specify same CPU to WiFi and LWIP as they are working together.

Thanks,
Naeem