Bird
0
0

You need to design a FreeRTOS system where some tasks must never miss deadlines (hard real-time), and others can miss occasionally (soft real-time). Which approach best achieves this?

hard📝 Application Q15 of 15
FreeRTOS - RTOS Fundamentals
You need to design a FreeRTOS system where some tasks must never miss deadlines (hard real-time), and others can miss occasionally (soft real-time). Which approach best achieves this?
AAssign highest priorities to hard real-time tasks and use vTaskDelay carefully for soft real-time tasks.
BUse vTaskDelay for all tasks to simplify timing.
CAssign equal priorities to all tasks and rely on round-robin scheduling.
DRun hard real-time tasks only when soft real-time tasks are idle.
Step-by-Step Solution
Solution:
  1. Step 1: Understand priority and delay roles in FreeRTOS

    Hard real-time tasks need highest priority to avoid preemption and deadline misses.
  2. Step 2: Use vTaskDelay carefully for soft real-time tasks

    Soft real-time tasks can tolerate delays, so vTaskDelay helps manage their timing without affecting hard real-time tasks.
  3. Step 3: Evaluate other options

    Equal priorities or running hard real-time tasks only when soft are idle do not guarantee deadlines.
  4. Final Answer:

    Assign highest priorities to hard real-time tasks and use vTaskDelay carefully for soft real-time tasks. -> Option A
  5. Quick Check:

    Priority + careful delay = mixed real-time system [OK]
Quick Trick: Prioritize hard real-time tasks highest, delay soft tasks [OK]
Common Mistakes:
  • Giving equal priority to all tasks
  • Using delays in hard real-time tasks
  • Running hard real-time tasks only after soft tasks

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes