CS FundamentalsHardGATE
A real-time system has two periodic tasks: Task A with period 20 ms and execution time 5 ms, Task B with period 50 ms and execution time 25 ms. Under Rate Monotonic Scheduling (shorter period gets higher static priority), is the task set schedulable according to the standard RMS sufficient-condition test for 2 tasks (bound ≈ 0.828)?
- A. CPU utilisation is 0.9, above the bound, so it is not guaranteed schedulable by the sufficient test
- B. CPU utilisation is exactly 1.0, a fully saturated but still schedulable system
- C. Utilisation cannot be computed without knowing deadlines separately from periods
- D. CPU utilisation is 0.75, which is below the 2-task RMS bound of about 0.828, so it is schedulable by the sufficient test
Correct answer: D. CPU utilisation is 0.75, which is below the 2-task RMS bound of about 0.828, so it is schedulable by the sufficient test
Utilisation = 5/20 + 25/50 = 0.25 + 0.5 = 0.75. The Liu-Layland bound for 2 tasks is 2(2^(1/2) − 1) ≈ 0.828. Since 0.75 ≤ 0.828, the sufficient condition guarantees schedulability under RMS (though failing the bound would not necessarily mean unschedulable — only inconclusive).
More Operating Systems questions
- Compare Rate Monotonic Scheduling (RMS, static priority by period) and Earliest Deadline First (EDF, dynamic priority by nearest deadline)…
- A system call interface lets a user program request a kernel service (like opening a file). What is the typical hardware-assisted…
- Copy-on-write (COW) is used after fork() to avoid copying the entire parent's address space immediately. How does it work?
- A process has a single-level page table with a 'valid/invalid' bit per entry. A memory reference to a page marked invalid causes a page…
- Memory-mapped files (via mmap) let a process treat a file's contents as part of its address space. Compared to read()/write() calls, what…
- Swap space (backing store) on disk lets the OS support more processes than fit entirely in physical RAM. Which statement about it is…