Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following set of processes: table [ [ Process , Arrival Time,Burst Time, table [ [ Comes back ] , [ after

Consider the following set of processes:
\table[[Process,Arrival Time,Burst Time,\table[[Comes back],[after]],Priority],[P1,0,10,2,3],[P2,1,8,4,2],[P3,3,14,6,3],[P4,4,7,8,1],[P5,6,5,3,0],[P5,7,4,6,1],[P7,8,6,9,2]]
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 200 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=5
Preemptive Priority Scheduling, with aging; where priority is decremented by 1 if the process remains in the ready queue for 5 time units.
Non-preemptive Priority Scheduling, with aging; where priority is decremented by 1 if the process remains in the ready queue for 5 time units.
for this assignment, you may use any programming language of your choosing.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

1. What are the pros and cons of diversity for an organisation?

Answered: 1 week ago

Question

1. Explain the concept of diversity and equality in the workplace.

Answered: 1 week ago