Skip to content
Exercise 8 · Q5
Q.

Consider the available processes given below in the ready queue for execution and with given burst time.

Process NoArrival TimeBurst time
P113
P224
P332
P444

a) What is the time at which all the processes get executed?

b) Find the average turnaround time using the non-pre-emptive FCFS scheduling algorithm.

CBSENCERTSubjective· 3mImportance★★★★★est
75% · 80/106 Questions
🔒 Locked · start free trial →

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 →

Running P1→P2→P3→P4 by arrival order, the CPU is busy up to t=14t=14; turnaround times are 3,6,7,103,6,7,10, averaging 6.56.5 units.

For non-preemptive FCFS, a process starts when the CPU is free and it has arrived.

Turnaround Time (TAT)=Completion Time−Arrival Time\text{Turnaround Time (TAT)} = \text{Completion Time} - \text{Arrival Time}

Average TAT=1n∑TATi\text{Average TAT}=\frac{1}{n}\sum \text{TAT}_i

  1. Order = arrival order: P1→P2→P3→P4P_1\to P_2\to P_3\to P_4.
  2. Build the schedule (start =max⁡(arrival,previous completion)=\max(\text{arrival},\text{previous completion})):
ProcessArrivalBurstStartCompletion
P11314
P22448
P332810
P4441014
  1. (a) Time all processes complete == last completion =14= 14 units. …

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.