freeRTOS cpu scheduling

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

freeRTOS cpu scheduling

Postby snahmad75 » Sun Feb 03, 2019 12:51 pm

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

Who is online

Users browsing this forum: ESP_Roland, ok-home and 137 guests