FreeRTOS - Task Priorities
What is wrong with this code snippet?
TaskHandle_t xTask2 = NULL; vTaskPrioritySet(xTask2, 4);
What is wrong with this code snippet?
TaskHandle_t xTask2 = NULL; vTaskPrioritySet(xTask2, 4);
xTask2 is set to NULL, meaning it does not point to a valid task.vTaskPrioritySet() with a NULL handle leads to undefined behavior or runtime error because no valid task exists to change priority.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions