FreeRTOS Arduino Expanded Exercises
FreeRTOS Arduino Expanded Exercises
Setup Exercise:
Create 4 tasks with 4 different priorities, describe the effect of different priority and explain
those different
Questions:
- How does FreeRTOS manage task switching between multiple tasks?
- What happens if two tasks have the same priority?
Questions:
- What happens if the semaphore is not given back?
- How can you prioritize access to the semaphore among tasks?
Questions:
- What happens if the queue is full?
- How can you prioritize messages from Producer1 over Producer2?
Exercise 4: Priority-based Task Scheduling
Create five tasks with different priorities:
Questions:
- How does FreeRTOS handle preemption between different priority tasks?
- What is the effect of setting equal priorities to two tasks?