in CO and Architecture retagged by
11,768 views
36 votes
36 votes

Which of the following is true?

  1. Unless enabled, a CPU will not be able to process interrupts.

  2. Loop instructions cannot be interrupted till they complete.

  3. A processor checks for interrupts before executing a new instruction.

  4. Only level triggered interrupts are possible on microprocessors.

in CO and Architecture retagged by
11.8k views

3 Comments

The (C) is false as shown in the below screenshot:

Interrupt check happens before the CPU fetches new instruction.

11
11
What about piplelined processors? The fetching cannot wait.
1
1

there also it should check.

0
0

2 Answers

48 votes
48 votes
Best answer

Answer is (A).

Options (B) and (D) are obviously false.

A processor checks for the interrupt before FETCHING an instruction, so option (C) is also false.

edited by

4 Comments

This might seem funny but i took the ‘enabling’ in option A to be of the CPU itself and not the interrupts. Can the option A mean this?
0
0
Fetching comes before execution → checks for interrupts “before execution” → checks for interrupts before “decoding” ..so on
So in a MSQ sence opt (C) is also right
0
0

@KartikGawande obviously yess bro , because if the CPU is disabled then how will the interuppt even be processed.

0
0
2 votes
2 votes

are both option (a) and (c)  TRUE .... explain ???
Option (c) “Polling is like picking up your phone every few seconds to see if you have a call. Interrupts are like waiting for the phone to ring.”

CPU senses (checks) interrupt request line after every instruction; if raised,.... correct me

http://www.cs.toronto.edu/~demke/469F.06/Lectures/Lecture6.pdf or archive

edited by

4 Comments

@Swami Patil

Option C is wrong because we know that instruction has to pass through various phases(fetching, decoding, executing, writeback ), after completion of instruction CPU has to check for interrupts.

CPU can not check interrupts after executing phase..

1
1
Why are we assuming it to be a pipelined system?
0
0
Anybody with this toronto pdf? It's saying forbidden
1
1
Answer:

Related questions