Embedded Systems & Firmware

What is the main purpose of using an RTOS (real-time operating system) in embedded devices?

  1. ATo display attractive windows on a screen
  2. BTo make average processing speed always faster than a PC OS
  3. CTo switch among multiple tasks by priority so the system can respond within set time limits
Show answer and explanation

Answer: C. To switch among multiple tasks by priority so the system can respond within set time limits

An RTOS divides work into tasks and switches to a higher-priority task as soon as it becomes ready to run. Its purpose is to make sure time-critical work, such as motor control or communication responses, happens reliably within set time limits. It also provides queues for passing data between tasks, mutexes for protecting resources and timed waits. Examples include FreeRTOS, Zephyr and μITRON.

  • A. Displaying graphics is not the main purpose.
  • B. Guaranteeing worst-case time matters more than average speed.
  • C. Correct. Predictable response times are what matter.
Practice this topic Back to topic

More Embedded Systems & Firmware questions

  1. In a preemptive RTOS, while a low-priority task is running, a high-priority task receives the data it was waiting for and becomes ready. What generally happens?
  2. Which describes priority inversion in an RTOS?
  3. Which describes priority inheritance, used to prevent priority inversion?
  4. In an RTOS, what is the advantage of using a queue (message queue) to pass data from a sensor-reading task to a display task?
  5. What is the difference between hard real-time and soft real-time?