Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a system running 3 (three) CPU-bound tasks (C1- C3) and 2 (two) I/O-bound tasks (I1 - I2). Each I/O bound task issues an I/O

Consider a system running 3 (three) CPU-bound tasks (C1- C3) and 2 (two) I/O-bound tasks (I1 - I2). Each I/O bound task issues an I/O operation once every 1 millisecond of CPU. Each I/O operation takes 5 milliseconds. Assume that there is only one I/O device (so multiple I/O requests may have to queue). Assume that the context switch takes 0.5 milliseconds. Assume that each CPU-bound requires 20 milliseconds of CPU to complete and each I/O-bound task requires 2 millisecond of CPU time. Show through a Ganttt chart how the I/O and CPU are allocated and compute the average turnaround times for the CPU-bound and I/O bound tasks. At the beginning, there are no jobs running in the system. Assume that the ready queue has C1, C2, I1, I2,C3 jobs in that order with C1 at the front of the queue. Assume FCFS scheduling for both CPU and I/O.

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

What is gravity?

Answered: 1 week ago

Question

What is the Big Bang Theory?

Answered: 1 week ago

Question

6-22. New budget figures

Answered: 1 week ago