3,184 views
1 1 vote

A computer consists of a CPU and an I/O device D connected to main memory M via a shared bus with a data bus width of one word (16-bits). The CPU can execute a maximum of 106 instructions per second. An average instruction requires five processor cycles, three of which use the memory bus. A memory read or write operation uses one processor cycle. Suppose that the CPU is continuously executing “background” programs that require 95% of its instruction execution rate but not any I/O instructions. Assume that one processor cycle equals one bus cycle. Now suppose that very large blocks of data are to be transferred between M and D.
Calculate I/O data transfer rate, in words per second possible through D if DMA transfer is used [ Assume that the DMA module can use all of these cycles, and ignore any setup or status‐checking time] ?

  1.   2.15 x 106
  2.   3.15 x 106
  3.   1.15 x 106
  4.   4.15 x 106

1 Answer

0 0 votes

It is given that on an average an instruction requires 6 cycles and the CPU is busy 95% of the time in executing those instructions. Out of these 6 cycles, 3 cycles are needed for memory operations. During this time DMA cannot access the memory.

So only 3 cycles are left for DMA to use for 95% of the time. For 95% time DMA uses
0.95∗3 cycles

For rest 5% time, CPU isn't executing instructions, so all cycles are available, so DMA uses 0.05∗6 cycles
Total cycles available for DMA = (0.05∗6+0.95∗3) cycles

In 1second, CPU can execute 10^6 instructions. So rate of transfer = 10^6∗(0.05∗6+0.95∗3)=3.15∗106

Position:
Show:

Related questions

5 5 votes
2 2 answers
537
537 views
GO Classes asked Sep 24, 2025
537 views
A DMA controller transfers data from an I/O device to main memory using cycle stealing. The CPU is running at a frequency of $50$ MHz . The I/O device transfers data at a...
4 4 votes
1 1 answer
339
339 views
GO Classes asked Sep 17, 2025
339 views
A system with a $1$ GHz CPU uses DMA to transfer data from a device at a rate of $50 \mathrm{MB} / \mathrm{s}$. The data is transferred in $32$ KB blocks. The DMA setup r...
0 0 votes
1 1 answer
625
625 views
N_i_t_i_n asked Sep 13, 2025
625 views
During DMA transfers, the CPU is momentarily halted while the DMA controller takes control of the system busTrue or False?
3 3 votes
3 3 answers
414
414 views
GO Classes asked Sep 5, 2025
414 views
A computer system uses DMA in cycle stealing mode. The DMA controller transfers one $8$-bit character in a single memory cycle from an I/O device to main memory at fixed ...