Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

these are processes with id , arrival time, burst time and comeback time and priorty in order: if _ name _ = = _

these are processes with id, arrival time, burst time and comeback time and priorty in order: if _name_=="_main_": processes =[ Process(1,0,10,2,3), Process(2,1,8,4,0), Process(3,3,14,6,3), Process(4,4,7,8,1), Process(5,6,5,3,0), Process(6,7,4,6,1), Process(7,8,6,9,2)]give code in python : 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 =55- 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.

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

More Books

Students also viewed these Databases questions

Question

Distinguish between direct material and indirect material.

Answered: 1 week ago