Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement a CPU scheduler simulation using uniform distribution to compare three scheduling algorithm. *Priority Non Preemptive Scheduling Algorithm * Priority Preemptive Scheduling Algorithm *Dynamic Round-Robin

Implement a CPU scheduler simulation using uniform distribution to compare three scheduling algorithm. *Priority Non Preemptive Scheduling Algorithm * Priority Preemptive Scheduling Algorithm *Dynamic Round-Robin variable quantum Scheduling algorithm (use any programming language ) and describe your evaluation of these different scheduling algorithms. Did one work better then the other? Which algorithm might be better then another for a given purpose? for example A job can be defined by an arrival time and a burst time. For example, heres a sequence of jobs: <0, 100>, <2, 55>, <2, 45>, <5, 10> The first job arrives at time 0 and requires 100ms of CPU time to complete; the second job arrives at time 2 and requires 55ms of CPU time; the third job arrives at time 2 and requires 45ms; and so on. You can assume that time is divided into millisecond units. Your simulator should first generate a sequence of jobs. The burst lengths can be determined by selecting a random number from a uniform distribution. There should also be a minimum job length of 2ms, so that the total burst duration for a job is 2ms plus the value selected from the uniform distribution (which should be between 100 and 200). So the shortest job will require for 102ms of CPU time and the longest, 202ms. Your program should simulate the arrival of jobs for up to n milliseconds and then stop. Once the jobs have been generated, you will need to compare the performance of different scheduling algorithms on the same set of jobs. You can write one program that runs all algorithms or write three separate programs. For each scheduling algorithm, your program should measure at least (1) the CPU utilization, (2) the average job throughput per second, and (3) the average job turnaround time.

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions

Question

differentiate the function ( x + 1 ) / ( x ^ 3 + x - 6 )

Answered: 1 week ago