Bird
0
0

You want to run two tasks in FreeRTOS: one blinking an LED every 500ms and another reading a sensor every 1000ms. Which feature of an RTOS helps you achieve this reliably?

hard📝 Application Q15 of 15
FreeRTOS - RTOS Fundamentals
You want to run two tasks in FreeRTOS: one blinking an LED every 500ms and another reading a sensor every 1000ms. Which feature of an RTOS helps you achieve this reliably?
AStatic memory allocation only
BSingle-threaded execution without interrupts
CManual delay loops in main program
DTask scheduling with priorities and time slicing
Step-by-Step Solution
Solution:
  1. Step 1: Understand multitasking needs

    Running two tasks with different timing requires the system to switch between tasks efficiently and predictably.
  2. Step 2: Identify RTOS feature for multitasking

    RTOS uses task scheduling with priorities and time slicing to manage multiple tasks reliably.
  3. Final Answer:

    Task scheduling with priorities and time slicing -> Option D
  4. Quick Check:

    RTOS scheduling enables reliable multitasking [OK]
Quick Trick: RTOS scheduling manages multiple timed tasks [OK]
Common Mistakes:
  • Thinking single-threaded code can handle multitasking well
  • Using manual delays instead of scheduler
  • Confusing memory allocation with task management

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes