Question: 1 . A computer supports three I / O techniques: programmed I / O , interrupt - driven I / O and DMA. a .
A computer supports three IO techniques: programmed IO interruptdriven IO and DMA.
a The programmed IO does not incur any extra overhead to access data in device A if the device is available. If the device is unavailable, the CPU has to keeping polling the device, until it is available.
b The interruptdriven IO incurs ms overhead for each interrupt service.
c The DMA incurs ms overhead each time it is configured.
Suppose a program needs to access MB data in device A in total, each time access MB The device is available every ms
If we do not consider the time for the program to access the data in device A its pure execution time is ms
The time to transfer KB data between the CPU and the device is ms The time to transfer KB data between device and the memory is ms and the time to transfer KB data between CPU and the memory is ms To access the MB data, the DMA only needs to be configured once.
Which technique is the best for this program?
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
