Question 1: Consider the set of processes with arrival time (in milliseconds), CPU burst time (in milliseconds), and priority (0 is the highest priority) shown below. None of the processes have I/O burst time. Process Pl Arrival time Burst Time Priority 0 11 2 P2 5 28 0 P3 12 2 3 P4 2 10 1 P5 9 16 4 P6 16 16 1 a. Draw Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: Nonpreemptive SJF, Preemptive SJF I. FCFS, II. III. IV. V. VI. VIL Nonpreemptive priority Preemptive priority RR (quantum 4) (i.e. standard round robin) Priority based RR (quantum 4) (If a process is preempted by a higher-priority process, the preempted process is placed at the end of the queue) b. What is the turnaround time of each process for each of the scheduling algorithms in part a? c. What is the waiting time of each process for each of these scheduling algorithms? d. Which of the algorithms results in the minimum average waiting time (over all processes)? e. What is the CPU utilization rate for each of these scheduling algorithms?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Alert dont submit AI generated answer.

Question 1: Consider the set of processes with arrival time (in milliseconds), CPU burst time (in
milliseconds), and priority (0 is the highest priority) shown below. None of the processes have I/O
burst time.
Process
Pl
Arrival time
Burst Time Priority
0
11
2
P2
5
28
0
P3
12
2
3
P4
2
10
1
P5
9
16
4
P6
16
16
1
a. Draw Gantt charts that illustrate the execution of these processes using the following
scheduling algorithms:
Nonpreemptive SJF,
Preemptive SJF
I.
FCFS,
II.
III.
IV.
V.
VI.
VIL
Nonpreemptive priority
Preemptive priority
RR (quantum 4) (i.e. standard round robin)
Priority based RR (quantum 4) (If a process is preempted by a higher-priority
process, the preempted process is placed at the end of the queue)
b. What is the
turnaround time of each process for each of the
scheduling algorithms in part a?
c. What is the waiting time of each process for each of these scheduling algorithms?
d. Which of the algorithms results in the minimum average waiting
time (over all processes)?
e. What is the CPU utilization rate for each of these scheduling algorithms?
Transcribed Image Text:Question 1: Consider the set of processes with arrival time (in milliseconds), CPU burst time (in milliseconds), and priority (0 is the highest priority) shown below. None of the processes have I/O burst time. Process Pl Arrival time Burst Time Priority 0 11 2 P2 5 28 0 P3 12 2 3 P4 2 10 1 P5 9 16 4 P6 16 16 1 a. Draw Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: Nonpreemptive SJF, Preemptive SJF I. FCFS, II. III. IV. V. VI. VIL Nonpreemptive priority Preemptive priority RR (quantum 4) (i.e. standard round robin) Priority based RR (quantum 4) (If a process is preempted by a higher-priority process, the preempted process is placed at the end of the queue) b. What is the turnaround time of each process for each of the scheduling algorithms in part a? c. What is the waiting time of each process for each of these scheduling algorithms? d. Which of the algorithms results in the minimum average waiting time (over all processes)? e. What is the CPU utilization rate for each of these scheduling algorithms?
Expert Solution
steps

Step by step

Solved in 2 steps with 6 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education