Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a system running 2 (two) CPU-bound tasks (C1 and C2) and 2 (two) 1O-bound tasks (T1 and T2). Each I/O bound task issues an

image text in transcribed
Consider a system running 2 (two) CPU-bound tasks (C1 and C2) and 2 (two) 1O-bound tasks (T1 and T2). Each I/O bound task issues an IO operation once every 1 millisecond of CPU. Each /O operation takes 4 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.2 milliseconds. Assume that each CPU-bound requires 10 milliseconds of CPU to complete and each I/O-bound task requires 2 milliseconds of CPU time. Show through a Gantt 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, 12 jobs in that order with C1 at the front of the queue. Assume FCFS scheduling for both CPU and ITO

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 2 Lnai 8725

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448505, 978-3662448502

More Books

Students also viewed these Databases questions

Question

Address an envelope properly.

Answered: 1 week ago

Question

Discuss guidelines for ethical business communication.

Answered: 1 week ago