Aspire Faculty ID #12696 · Topic: JECA MCA 2024 · Just now
JECA MCA 2024

Three CPU-intensive processes (10, 20, 30 units) arrive at 0,2,6 respectively. Using shortest remaining time first scheduling, how many context switches are needed (excluding t=0 and end)?

Solution

Solution: SRTF will preempt at arrivals (P1→P2 at t=2, P2→P3 at t=6). Thus 2 context switches occur.
Answer: (B) 2

Previous 10 Questions — JECA MCA 2024

Nearest first

Next 10 Questions — JECA MCA 2024

Ascending by ID
Ask Your Question or Put Your Review.

loading...