A processor fetches instructions at a rate of 1 MIPS. A DMA module transfers…

2013

A processor fetches instructions at a rate of 1 MIPS. A DMA module transfers 8-bit characters to RAM from a device transmitting at 9600 bps. Assume that each instruction fetch occupies one memory cycle and that cycle stealing uses one equal-duration memory cycle per transferred character. How much processor time is lost during each second of operation?

Answer: D. 1.2 msConceptIn cycle-stealing DMA, the processor pauses for one memory cycle whenever the DMA controller transfers one data unit. When an instruction fetch and a…

  1. A.

    9.6 ms

  2. B.

    4.8 ms

  3. C.

    2.4 ms

  4. D.

    1.2 ms

Attempted by 204 students.

Show answer & explanation

Correct answer: D

Concept

In cycle-stealing DMA, the processor pauses for one memory cycle whenever the DMA controller transfers one data unit. When an instruction fetch and a DMA transfer occupy equal-duration memory cycles, processor time lost per second equals DMA transfers per second multiplied by the duration of one instruction-fetch cycle.

Application

  1. Convert the device rate to characters per second: 9600 bits/s ÷ 8 bits/character = 1200 characters/s.

  2. With one stolen memory cycle per character, DMA takes 1200 processor cycles during each second.

  3. At 1 MIPS, one million instruction fetches take one second. Under the stated equal-cycle assumption, one memory cycle therefore takes 1 microsecond.

  4. The total stolen time is 1200 × 1 microsecond = 1200 microseconds = 1.2 ms per second.

Cross-check

The stolen fraction is 1200 ÷ 1,000,000 = 0.0012 = 0.12%. Taking 0.12% of one second again gives 0.0012 s = 1.2 ms.

Therefore, the processor loses 1.2 ms of execution time during each second of operation.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…