Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following set of processes: D Process Arrival Time Burst Time Comes back Priority after P1 0 10 2 3 P2 1 8

image

Consider the following set of processes: D Process Arrival Time Burst Time Comes back Priority after 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. 1- First Come First Served. 2- Shortest Job First. 3- Shortest Remaining Time First. 4- Round Robin, with q = 5 5- Preemptive Priority Scheduling, with aging; where priority is decremented by 1 if the process remains in the ready queue for 5 time units. 6- Non-preemptive Priority Scheduling, with aging; where priority is decremented by 1 if the process remains in the ready queue for 5 time units. Hint: You should create a process that initially creates the 7 processes, and continuously updates the status of the processes, and another process that schedules those processes, and plots the results.

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_2

Step: 3

blur-text-image_3

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

Value at Risk The New Benchmark for Managing Financial Risk

Authors: Philippe Jorion

3rd edition

0070700427, 71464956, 978-0071464956

More Books

Students also viewed these Programming questions

Question

Question 30 Answered: 1 week ago

Answered: 1 week ago

Question

What is the signicance of play for development?

Answered: 1 week ago

Question

How does play change as a child is growingup?

Answered: 1 week ago