edited by
670 views
2 votes
2 votes

CPU can leave current instruction execution, without completing it for :

  1. Service of interrupt
  2. DMA
  3. Both
  4. Neither
edited by

3 Answers

1 votes
1 votes

the correct reason for the answer DMA :- is difference between DMA request and Interrupt request. in case of interrupt request c.p.u has to store current status of programme and complete the current instruction to be free to execute interrupt service routine but in case of DMA request c.p.u just have to halt for a time period in the situation it is in ..there is no need to save its current status and to be free so a DMA request can arrive at any machine cycle(i.e. fetch ,decode)

source:- NPTEL  sir raman lecture

0 votes
0 votes

Answer should be only DMA because processor can give bus mastership to DMA during the execution of an instruction.

can not be the option because processor only checks for interrupt after it completes its instruction execution.

Note - If during an instruction execution an exception occur then also processor can leave current instruction execution and run exception handler. But exceptions and interrupts are two different things.

0 votes
0 votes
Option B) DMA is the answer , because CPU can provide bus to DMA during the execution of an instruction.

Whereas, In case of Interrupt , CPU only checks for interrupt after current instruction is executed.

Related questions

1 votes
1 votes
0 answers
1
Tushar Shinde asked Jan 24, 2016
453 views
As far as I know, HALT is always implemented as...HALT = Here: JMP HereUntil user close the application, it keeps looping itself. So the address on the stack should be 10...
1 votes
1 votes
1 answer
2
0 votes
0 votes
1 answer
4