CS FundamentalsVery hardProduct company interview · GATE level
Compare Rate Monotonic Scheduling (RMS, static priority by period) and Earliest Deadline First (EDF, dynamic priority by nearest deadline) for periodic real-time tasks. Which statement is correct?
- A. RMS and EDF have identical theoretical utilisation bounds
- B. Neither algorithm can guarantee deadlines for periodic tasks
- C. RMS can always achieve 100% CPU utilisation; EDF cannot
- D. EDF can theoretically achieve up to 100% CPU utilisation schedulability for periodic tasks with deadlines equal to periods, while RMS's guaranteed bound is lower (around 69% for many tasks, by the Liu-Layland bound)
Correct answer: D. EDF can theoretically achieve up to 100% CPU utilisation schedulability for periodic tasks with deadlines equal to periods, while RMS's guaranteed bound is lower (around 69% for many tasks, by the Liu-Layland bound)
EDF is optimal among dynamic-priority schedulers and can schedule any task set with utilisation up to 1.0 (when deadlines equal periods). RMS is optimal among static-priority schedulers but its general sufficient-condition bound converges to ln(2) ≈ 0.693 as the number of tasks grows, meaning some schedulable-by-EDF task sets are not guaranteed schedulable by the simple RMS test.
More Operating Systems questions
- 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…
- RAID 5 stripes data across N disks and stores a rotating parity block (the XOR of the corresponding data blocks) on a different disk for…