cs501 assignment 3 solution 2021
Aslam dear students please allow the notifications to get the latest uploaded assignments, GDBs and quizzes notifications. Thanks
Question No 02 8 marks
Consider a hard drive that has a transfer rate of Twenty (20) MB/s. The hard disk is connected to a CPU having a frequency of One (1) GHz through a Thirty two (32)-bit data bus. The CPU uses DMA interface for I/O transfers which has the following specifications:
• CPU spends around three hundred (300) clock cycles to set up a DMA controller for every DMA request.
• At the end of each DMA transfer, an interrupt is generated which takes additional One hundred (100) clock cycles.
If the data is transferred in a block and each block size is sixteen (16) KB, then calculate the percentage of time consumed for DMA transfers using the hard drive.