Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Faculty of Engineering & Technology Department of Electrical & Computer Engineering ENCS 3 3 9 0 : Operating System Concepts First Semester, 2 0 2
Faculty of Engineering & Technology Department of Electrical & Computer Engineering ENCS: Operating System Concepts First Semester, Programming Task Published: Dec Due: Jan by midnight. Consider the following set of processes: Once each process is done processing its Burst Time it goes to the waiting queue, then Comes back to the ready queue after the time shown. You are required to simulate the CPU schedule for a period of time units. For each of the following scheduling algorithms, your program must show the Gantt chart, average waiting time, and average turnaround time. First Come First Served. Shortest Job First. Shortest Remaining Time First. Round Robin, with q Preemptive Priority Scheduling, with aging; where priority is decremented by if the process remains in the ready queue for time units. Nonpreemptive Priority Scheduling, with aging; where priority is decremented by if the process remains in the ready queue for time units. For this assignment, you may use any programming language of your choosing. Process Arrival Time Burst Time Comes back after Priority P P P P P P P Hint: You should create a process that initially creates the processes, and continuously updates the status of the processes, and another process that schedules those processes, and plots the results.this the question and this is thw answer First Come First Served: GANTT CHART: P P P P P P P P P P P P P P P P P P Average waiting time Average turnaround time Shortest Job First: GANTT CHART: P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P Average waiting time Average turnaround time Shortest Remaining Time First: GANTT CHART: P P P P P P P P P P P P P D P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P Average waiting time Average turnaround time Round Robin: GANTT CHART: P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P Average waiting time Average turnaround time Priority Scheduling Preemptive: GANTT CHART: P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P Average waiting time Average turnaround time Priority Scheduling NonPreemptive: GANTT CHART: P P P P P P P P P P P P P P P P P
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started
Faculty of Engineering & Technology
Department of Electrical & Computer Engineering
ENCS: Operating System Concepts
First Semester,
Programming Task
Published: Dec Due: Jan by midnight.
Consider the following set of processes:
Once each process is done processing its Burst Time it goes to the waiting queue,
then Comes back to the ready queue after the time shown.
You are required to simulate the CPU schedule for a period of time units.
For each of the following scheduling algorithms, your program must show the Gantt
chart, average waiting time, and average turnaround time.
First Come First Served.
Shortest Job First.
Shortest Remaining Time First.
Round Robin, with q
Preemptive Priority Scheduling, with aging; where priority is decremented by
if the process remains in the ready queue for time units.
Nonpreemptive Priority Scheduling, with aging; where priority is
decremented by if the process remains in the ready queue for time units.
For this assignment, you may use any programming language of your choosing.
Process Arrival Time Burst Time Comes back
after
Priority
P
P
P
P
P
P
P
Hint: You should create a process that initially creates the processes, and
continuously updates the status of the processes, and another process that schedules
those processes, and plots the results.this the question and this is thw answer First Come First Served:
GANTT CHART:
P P P P P P P P P P P P P P P P P P
Average waiting time
Average turnaround time
Shortest Job First:
GANTT CHART:
P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P
Average waiting time
Average turnaround time
Shortest Remaining Time First:
GANTT CHART:
P P P P P P P P P P P P P D P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P
Average waiting time
Average turnaround time
Round Robin:
GANTT CHART:
P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P
Average waiting time
Average turnaround time
Priority Scheduling Preemptive:
GANTT CHART:
P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P P
Average waiting time
Average turnaround time
Priority Scheduling NonPreemptive:
GANTT CHART:
P P P P P P P P P P P P P P P P P
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started