CS FundamentalsModerateGATE CS
Which statement about DMA is correct?
- A. DMA requires the CPU to move every byte
- B. The DMA controller transfers a block between device and memory itself and interrupts the CPU once at the end, though it may steal memory-bus cycles from the CPU
- C. DMA bypasses main memory entirely
- D. DMA eliminates all interrupts from the device
Correct answer: B. The DMA controller transfers a block between device and memory itself and interrupts the CPU once at the end, though it may steal memory-bus cycles from the CPU
The CPU sets up source, destination and count; the DMA engine moves the data, competing for the bus (cycle stealing), and raises one completion interrupt.
More Operating Systems questions
- A spooler is used for a printer. Which deadlock condition does spooling break for the printer resource, and how?
- Semaphores s = 2, t = 0. Process X runs repeat 2 times { wait(s); print('A'); signal(t); } and Y runs repeat 2 times { wait(t)…
- Shared x = 0. Three threads each execute x = x + 1; once (load, add, store; no locking). What is the set of possible final values?
- Shared x = 0. Thread A executes x = x + 1; twice and thread B executes x = x - 1; twice, with no synchronisation (each statement is load…
- Semaphores a = b = c = 0. P1: print A; signal(a); wait(b); wait(c); print X. P2: print B; signal(b); signal(b); wait(a); print Y. P3…
- Semaphore s = 0. P1: print('a'); signal(s); print('b'). P2: wait(s); print('c'); print('d'). How many different output strings are possible?