Answer: 1.4 : 1.5
To find the fraction of processor time consumed by the disk, we calculate the processor overhead incurred by the DMA transfers per second.
Step 1: Calculate the processor overhead per DMA transfer
Total overhead per transfer=Setup time+Interrupt handling time
Total overhead per transfer=1000+500=1500 clock cycles
Step 2: Calculate the number of transfers per second
Depending on how the unit "K" is interpreted, we have two standard cases:
- Case 1 (Decimal interpretation, 1 KB=1000 bytes):
Transfers per second=4×103 bytes2000×103 bytes/sec=500 transfers/sec
- Case 2 (Binary interpretation for block size, 1 KB=1024 bytes):
Transfers per second=4×1024 bytes2000×103 bytes/sec≈488.28 transfers/sec
Step 3: Calculate the fraction of processor time consumed
Total processor clock cycles per second=50 MHz=50×106 cycles/sec
- For Case 1:
Processor cycles used per second=500×1500=7.5×105 cycles/sec
Fraction consumed=50×1067.5×105=0.015 (or 1.5%)
- For Case 2:
Processor cycles used per second=488.28×1500≈732,422 cycles/sec
Fraction consumed=50×106732,422≈0.0146 (or 1.46%)
Thus, the fraction of processor time consumed is in the range of 1.4% to 1.5% (or 0.014 to 0.015).