Computing and Information Technology

Real-Time Operating Systems (RTOS) Scheduling Practice Exam, Flashcards & Questions

Master foundational to advanced Real-Time Operating Systems (RTOS) Scheduling with 330 verified curriculum items, worked engineering solutions, and spaced-repetition cards.

240 Total Questions 60 MCQs 90 Calculations 30 Formulas 60 Flashcards
Free Interactive Preview

Real-Time Operating Systems (RTOS) Scheduling Sample Exam Questions & Rationale

Preview official questions below. The complete pool of 240 items is available in the offline app.

Question 1 of 4 Constant Bandwidth Server (CBS) for Sporadic Task Isolation

How does a Constant Bandwidth Server (CBS) protect hard real-time tasks from aperiodic task overruns in EDF Linux SCHED_DEADLINE?

A It assigns a maximum budget and replenishment period, postponing a task's deadline when its budget is exhausted
B It forces all sporadic tasks to run at the lowest static priority level
C It aborts and terminates any task that exceeds its execution budget
D It doubles the task period whenever an interrupt occurs
Accepted Answer: Option A (It assigns a maximum budget and replenishment period, postponing a task's deadline when its budget is exhausted)

Rationale: The Constant Bandwidth Server (CBS, Abeni and Buttazzo, 1998) guarantees temporal isolation under EDF. A CBS server is allocated a budget $Q_s$ and period $P_s$ (bandwidth $U_s = Q_s / P_s$). If an aperiodic task consumes its budget $Q_s$ before deadline $d_s$, CBS replenishes the budget and postpones the deadline: $d_s \leftarrow d_s + P_s$. This prevents misbehaving tasks from stealing CPU bandwidth from hard real-time tasks.

Question 2 of 4 EDF Schedulability Bound for Independent Periodic Tasks ($U \\le 1$)

For independent periodic real-time tasks with implicit deadlines ($D_i = T_i$), what condition guarantees schedulability under preemptive EDF?

A Total processor utilization must be less than or equal to 1.0 (U <= 1.0)
B Total processor utilization must be less than or equal to ln(2) approx 0.693
C All task periods must be harmonic integer multiples
D Task release jitter must be identical across all tasks
Accepted Answer: Option A (Total processor utilization must be less than or equal to 1.0 (U <= 1.0))

Rationale: Liu and Layland (1973) proved that for independent periodic tasks with implicit deadlines ($D_i = T_i$), preemptive Earliest Deadline First is optimal and achieves a theoretical utilization bound of $100\%$ ($U \le 1.0$). Unlike RMS which requires $U \le 69.3\%$, EDF can utilize up to $100\%$ of processor capacity without missing any deadlines.

Question 3 of 4 Earliest Deadline First (EDF) Dynamic Priority Assignment

How does Earliest Deadline First (EDF) assign task priorities dynamically during real-time execution?

A The active task whose absolute deadline is closest to the current time is granted highest priority
B Priorities are assigned strictly inversely proportional to task arrival period
C The task with the smallest remaining execution time is always executed first
D Priorities are rotated deterministically among tasks using round-robin token passing
Accepted Answer: Option A (The active task whose absolute deadline is closest to the current time is granted highest priority)

Rationale: Earliest Deadline First (EDF) is an optimal dynamic priority scheduling algorithm for uniprocessor systems. At every scheduling decision point (job release or completion), the scheduler assigns the highest priority to the active job with the nearest absolute deadline ($d_{i,k} = r_{i,k} + D_i$). Priorities change dynamically over time.

Question 4 of 4 Least Slack Time (LST) First / Minimum Laxity First Scheduling

Under Least Slack Time (LST or Minimum Laxity First) scheduling, how is task laxity $L_i(t)$ calculated, and what practical disadvantage does it exhibit?

A Laxity equals $d_i - t - c_i(t)$; it exhibits frequent context switches when multiple tasks have identical slack
B Laxity equals $T_i / C_i$; it cannot preempt running tasks until they block
C Laxity equals $r_i + D_i$; it requires infinite cache memory
D Laxity equals context switch latency; it can only run on dual-core processors
Accepted Answer: Option A (Laxity equals $d_i - t - c_i(t)$; it exhibits frequent context switches when multiple tasks have identical slack)

Rationale: Laxity (or slack time) at time $t$ is the margin remaining before a deadline: $L_i(t) = d_i - t - c_i(t)$, where $d_i$ is absolute deadline and $c_i(t)$ is remaining execution time. While optimal on uniprocessors, LST has a severe drawback: when two tasks have equal slack, running one increases the other's relative urgency, causing continuous rapid preemption ('thrashing') between them.

Active Recall Spaced Repetition Cards (Preview)

Card 1 • Constant Bandwidth Server (CBS) for Sporadic Task Isolation
Under CBS in Linux SCHED_DEADLINE, budget exhaustion {{c1::postpones task deadline}}.
Enforces bandwidth isolation by pushing the overrunning task to lower EDF priority.
Card 2 • EDF Schedulability Bound for Independent Periodic Tasks ($U \\le 1$)
For periodic tasks with implicit deadlines, EDF guarantees schedulability if and only if total utilization satisfies {{c1::U \le 1.0}}.
Necessary and sufficient schedulability condition for uniprocessor EDF.

Real-Time Operating Systems (RTOS) Scheduling Curriculum Modules & Topics Covered

Modules
Real-Time Task Models & Timing ConstraintsRate Monotonic Scheduling (RMS) & Static PriorityEarliest Deadline First (EDF) & Dynamic SchedulingShared Resources & Priority Inversion ProtocolsRTOS Kernel Architecture & Timing Determinism
Core Exam Topics
  • Periodic, Aperiodic & Sporadic Real-Time Task Models
  • Hard vs Soft vs Firm Real-Time Deadlines & Value Functions
  • Task Release Jitter, Response Time & Latency Metrics
  • Worst-Case Execution Time (WCET) Analysis & Measurement
  • Hyperperiod Calculation & LCM of Task Periods
  • Real-Time Processor Utilization Factor ($\\sum C_i / T_i$)
  • Rate Monotonic Scheduling (RMS) Priority Assignment Principles
  • Liu-Layland Utilization Bound for RMS ($n(2^{1/n} - 1)$)
  • Exact Schedulability Analysis via Response Time Analysis (RTA)
  • Deadline Monotonic Scheduling (DMS) for Constrained Deadlines ($D_i \\le T_i$)
Learning Objectives
  • Develop core conceptual recall and analytical problem-solving in Real-Time Task Models & Timing Constraints.
  • Develop core conceptual recall and analytical problem-solving in Rate Monotonic Scheduling (RMS) & Static Priority.
  • Develop core conceptual recall and analytical problem-solving in Earliest Deadline First (EDF) & Dynamic Scheduling.
  • Develop core conceptual recall and analytical problem-solving in Shared Resources & Priority Inversion Protocols.
  • Develop core conceptual recall and analytical problem-solving in RTOS Kernel Architecture & Timing Determinism.

Free Downloadable Real-Time Operating Systems (RTOS) Scheduling Study Packs (.ZIP / .TSV)

Full Spreadsheet Data (TSV)
TSV • 240 items
Complete Course Pack
ZIP • 240 items
Elements (Standard)
ZIP • 240 items
Active Recall Flashcards
ZIP • 240 items
Formula Codex
ZIP • 240 items
Problem Solving (Mastery)
ZIP • 240 items
Artificial Intelligence (1,579) Artificial Intelligence and Machine Learning (507) Cloud Computing and DevOps (144) Compiler Design & Formal Languages (1,579) Computational Contact Mechanics: Penalty Function Method, Lagrange Multipliers & Mortar Contact Formulations (128) Computer Engineering & Algorithms (1,365)
Full Question Pool: 240 Verified Items

Unlock All 240 Real-Time Operating Systems (RTOS) Scheduling Practice Questions

Study the full question pool with 13 active recall battle modes, FSRS v5 spaced repetition, and 1-click printable PDF mock exams with full answer keys on Android and Windows PC.

Get on Google Play (Android) Get on Microsoft Store (Windows PC)