Exercise 8 · Q6
Q.
Consider the available processes given below in the ready queue for execution and with given burst time.
| Process No | Arrival Time | Burst time |
|---|---|---|
| P1 | 0 | 2 |
| P2 | 1 | 3 |
| P3 | 5 | 3 |
| P4 | 6 | 4 |
a) What is the time at which all the processes get executed?
b) Find the average waiting time and average turnaround time using the non-pre-emptive SJF scheduling algorithm.
Andaman Nicobar CbseNCERTSubjective· 3mImportance★★★★★est
84% · 89/106 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →Non-preemptive SJF runs P1→P2→P3→P4 here; the CPU finishes at , with average waiting time and average turnaround time units.
For non-preemptive SJF, at each decision point pick the shortest burst among the processes that have already arrived.
- Schedule step by step:
- : only (arr 0) available → run (burst 2): .
- : available (arr 1) → run (burst 3): .
- : available (arr 5); (arr 6) not yet → run (burst 3): .
- : available → run (burst 4): .
| Process | Arrival | Burst | Start | Completion |
|---|---|---|---|---|
| P1 | 0 | 2 | 0 | 2 |
| P2 | 1 | 3 | 2 | 5 |
| P3 | 5 | 3 | 5 | 8 |
| P4 | 6 | 4 | 8 | 12 |
- (a) All processes complete at units.
- Turnaround time : …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.