Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Consider a single processor system supporting two running processes, A and B, with the following sequential execution patterns: A: [CPU 8ms;101ms; CPU 8ms;101ms; CPU

image text in transcribed
3. Consider a single processor system supporting two running processes, A and B, with the following sequential execution patterns: A: [CPU 8ms;101ms; CPU 8ms;101ms; CPU 8ms ] B: [CPU 2ms;101ms; CPU 2ms;101ms; CPU 2ms ] Assume that 10 operations do not interfere with each other and are blocking, and that scheduling, and context switch times are negligible. a) What is the total elapsed time for the Iwo processes to run to completion? b) Assume the system runs a non-preemptive scheduler where processes are scheduled in the order in which they become runnable, and that B takes priority over A in the event of a tie. Give the combined execution pattern of the two processes in the format as in question #3, and determine the total elapsed time for the two processes to run to completion. c) Repeat part (3)(b) with a pre-emptive scheduler operating with a time slice of 4ms. d) What are the costs and the benefits of a pre-emptive over a non-preemptive scheduler for this workload, which would you choose, and why

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

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions