- 2068 Chaitra · 1+4 marks
- Year not given · 1+4 marks
Real-time system and real-time OS components
Short answer
A real-time system's correctness depends on results and timing; hard real-time fails if a deadline is missed, soft degrades. An RTOS manages processes with priority-based pre-emptive scheduling and bounded response times. Its components are real-time clock, interrupt handler, scheduler, resource manager, and dispatcher.
Define a real-time system. Explain the real-time operating system and its components?
A real-time system is a software system whose correct functioning depends both on the results it produces and on the time at which these results are produced. A hard real-time system fails if a deadline is missed (e.g. airbag control); a soft one only degrades (e.g. video streaming).
Real-time operating system (RTOS)
An RTOS (real-time executive) manages processes and resources in a real-time system so that time-critical processes meet their deadlines. It is usually small, uses priority-based pre-emptive scheduling, and has predictable, bounded response times. Examples: VxWorks, FreeRTOS, QNX.
Processes are handled at different priority levels:
- Interrupt level – highest priority, for processes that need a very fast response (e.g. the clock process).
- Clock level – periodic processes.
- Background level – low-priority work with no deadline.
Components of an RTOS (Sommerville)
+-----------------+
| Real-time clock |
+-----------------+
|
+-----------+ v
| Interrupt |----> +------------+
| handler | | Scheduler |<--- process
+-----------+ +------------+ priority info
|
v
+-------------------+
| Resource manager |<--- available
+-------------------+ resource list
|
v
+-------------------+
| Dispatcher |--> ready list
+-------------------+ -> processor
- Real-time clock – gives regular timing signals used to schedule periodic processes.
- Interrupt handler – manages aperiodic requests for service (e.g. a sensor event) and passes them on quickly.
- Scheduler – examines the processes that can run and picks the next one according to priority.
- Resource manager – allocates memory and processor resources to the process chosen by the scheduler.
- Dispatcher – starts the execution of a process from the ready list on a free processor.
Large real-time systems may also have a configuration manager (dynamic reconfiguration, hot-swapping of hardware) and a fault manager (detects faults and moves work to backup systems).
✓ Answer checked by Claude Sonnet 5.5
Related questions
- Real-time versus ordinary software and OS; data acquisition · Software Engineering, chapter 4
- General OS versus real-time OS · Software Engineering, chapter 4
- Designing software for real-time environments · Software Engineering, chapter 4
- Basic functions of real-time kernel · Embedded System, chapter 6 · asked 2×
- Preemptive vs non-preemptive; real-time scheduling · Operating System, chapter 2
- Rate Monotonic real-time schedule · Operating System, chapter 2
- Real-time scheduling; two-processor numerical · Operating System, chapter 2