Question: Consider a system running 1 CPU - bound task ( C 1 ) and 1 I / O - bound tasks ( I 1 )
Consider a system running CPUbound task C and IO
bound tasks I IO bound task issues an IO operation of milliseconds duration for
every milliseconds of CPU time. CPUbound task issues an IO operation of
millisecond duration for every milliseconds of CPU time. A CPUbound task requires
milliseconds of CPU to complete and an IObound task requires milliseconds of
CPU time.
Assume that there is only one IO device so multiple IO requests may have to
queue
Assume that CPU context switch time is negligible.
Assume that the ready queue has jobs in that order with C at the front of
the queue. There are no jobs in the system at time
Assume FCFS scheduling for both CPU and IO
For any job, an execution cycle has CPU execution followed by IO
Show through Gantt charts as a table how the IO and CPU are allocated and compute
the average turnaround times for the CPUbound and IObound tasks. Note: Each CPU
bound job ends with an IO operation which is unusual. But that is okay for this
example.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
