Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following three processes that arrive in a system at the specified times, along with the duration of their CPU bursts. Process P1 arrives

Consider the following three processes that arrive in a system at the specified times, along with the duration of their CPU bursts. Process P1 arrives at time t=0, and has a CPU burst of 10 units. P2 arrives at t=2, and has a CPU burst of 2 units. P3 arrives at t=3, and has a CPU burst of 3 units .

Write programs in c++ to find out average waiting time for each of the following algorithms. (a) First Come First Serve (non-preemptive) (b) Shortest Job First (preemptive and non-preemptive) (c) Priority (preemptive and non-preemptive) (d) Round robin with a time slice of (at most) 5 units per process (non-preemptive)

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago

Question

3. How would this philosophy fit in your organization?

Answered: 1 week ago