retagged by
403 views
0 votes
0 votes

A $CPU$ supports $4$ interrupts -  $I1 , I2 , I3$ and $I4$. It supports priority of the interrupts. Nested interrupts are allowed if later interrupt has higher priority than the previous one.

During a certain period of time, we observe the following sequence of entry and exit from the interrupt service routine.

 $I1$ start …….  $I2$  start …..  $I2$ end ….  $I4$ start …..  $I3$ start …..  $I3$ end …  $I4$ end .. $I1$  end

What can we infer about the priority interrupt routines from the above sequence?

  1.    $I3 > I4 > I2 ;  I4 > I1$
  2.    $I2 > I1;   I3 > I4 > I1$
  3.   $I1 > I2 > I3 > I4$
  4.   $I4 > I3 > I2 > I1$
retagged by

1 Answer

Best answer
1 votes
1 votes

In the given sequence I1 is least priority interrupt as it ends at the last of Interrupt Service Routine. .

I3 has higher priority than I4 as it ends before I4 .

I2 has higher priority than I1 .

Option B better describe the priority.

Answer:

Related questions

2 votes
2 votes
1 answer
2
1 votes
1 votes
1 answer
3
Bikram asked Feb 9, 2017
267 views
Relative mode addressing is most relevant to writing a/an __________:Co-routinePosition independent codeShareable codeInterrupt handler