Consider a disk drive with the following specifications:
surfaces, tracks/surface, sectors/track, KB/sector, rotation speed rpm. The disk is operated in cycle stealing mode whereby whenever one byte word is ready it is sent to memory; similarly, for writing, the disk interface reads a byte word from the memory in each DMA cycle. Memory cycle time is nsec. The maximum percentage of time that the CPU gets blocked during DMA operation is:
View worked solution
Answer: B
To find the percentage of time the CPU gets blocked, we first determine the data transfer rate of the disk drive.
- Rotational Speed:
- Track Capacity: Using :
- Data Transfer Rate (DTR):
- Time to prepare 1 word (4 bytes):
In cycle stealing mode, the DMA controller steals one memory cycle () to transfer each -byte word. During this cycle, the CPU is blocked.
This is closest to 25% (Option B). (Using yields , which also rounds to ).
Free practice · Your answers on this page are not saved.
