Python Unit4 (Original)
Python Unit4 (Original)
TWO-MARKS QUESTIONS
FOUR-MARKS QUESTIONS
EIGHT-MARKS QUESTIONS
The processes are assumed to have arrived in the order P1,P2,P3,P4 and P5 all at time 0[zero]
a. Draw four Gantt chart illustrating the execution of these processes using FCFS, SJF,NON-
PREMTIVE PRIORITY and RR [ time slice=2 ms ]
Find the average Waiting Time, Turn Around Time, Response Time and also analyse which is
the best scheduling algorithm
6. Consider the following set of processes with the length of CPU burst time given in
millisecond
Process Burst Time Priority
P1 4 4
P2 5 4
P3 2 3
P4 1 1
P5 6 3
P6 3 5
The processes are assumed to have arrived in the order P1,P2,P3,P4 ,P5 and P6 all at time
0[zero]
a. Draw four Gantt chart illustrating the execution of these processes using FCFS, SJF,
NON-PREMTIVE PRIORITY and RR [ time slice=3ms ]
b. Find the average Waiting Time, Turn Around Time, Response Time and also analyse
which is the best scheduling algorithm
7. Consider the following set of processes with the length of CPU burst time given in
millisecond
Process Arrival Time Burst Time
P1 5 5
P2 4 6
P3 3 7
P4 1 9
P5 2 2
P6 3 3
The processes are assumed to have arrived in the order P1,P2,P3,P4,P5 and P6
A )Draw four Gantt chart illustrating the execution of these processes using SJF PREEMPTIVE
and NON-PREMTIVE
Find the average Waiting Time, Turn Around Time, Response Time and also analyse which is
the best scheduling algorithm
8. Consider the following set of processes with the length of CPU burst time given in
millisecond
Process Burst Time Priority
P1 10 3
P2 4 6
P3 2 2
P4 5 2
P5 3 1
The processes are assumed to have arrived in the order P1,P2,P3,P4 and P5 all at time 0[zero]
a. Draw four Gantt chart illustrating the execution of these processes using FCFS,SJF,NON-
PREEMPTIVE PRIORITY
b. Find the average Waiting Time, Turn Around Time, Response Time and also analyse
which is the best scheduling algorithm