Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
713 views
in Computer by (41.3k points)
closed by

Consider the 3 process, P1, P2 and P3 shown in the table.

Process Arrival Time Time units Required
P1 0 5
P2 1 7
P3 3 4

The completion order of the 3 processes under the policies FCFS and RR2 (round robin scheduling with CPU quantum of 2 time units) are

(A) FCFS: P1, P2, P3 RR2: P1 I P2, P3 

(B) FCFS: P1, P3, P2 RR2: P1, P3, P2 

(C) FCFS: P1, P2, P3 RR2: P1, P3, P2 

(D) FCFS: P1 I P3, P2 RR2: P1, P2, P3

1 Answer

+1 vote
by (44.8k points)
selected by
 
Best answer

(C) FCFS: P1, P2, P3 RR2: P1, P3, P2 

The completion order for round robin is given below 

At time t = 2 

P1 will move to ready queue, so status of ready queue will be:

P1

(↑ front)

At time t= 3. 

P3 enters the system so it will be enqueued.

P3 P1

(↑ front)

At time t = 4, 

When quantum of P2 is done. www.examrace.com We need to enqueue P2 into ready queue & next process t o be executed which w ill be taken from front of Ready queue i.e, P1

Ready queue :

P2 P3

(↑ front)

So using round robin scheduling, the completion order is P1,P3,P2

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...