SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Linda Null ,julia Lobur
Chapter:
Input Output And Storage Systems
Exercise:
Exercises
Question:5 | ISBN:9780763704445 | Edition: 3

Question

5. A CPU with interrupt-driven I/O is busy servicing a disk request. While the CPU is midway through the disk-service routine, another I/O interrupt occurs.

a) What happens next?

b) Is it a problem?

c) If not, why not? If so, what can be done about it?

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

a) A CPU should disable all interrupts before it enters into an interrupt service routine, so the interrupt shouldn’t happen in the first place.

b) No, it is not a problem.

c) If interrupts are disabled, the second interrupt would never happen so it is not a problem.

0 0

Discussions

Post the discussion to improve the above solution.