termination, key presses, etc. Some interrupts are considered as more important to be handled first then the others. For example, a hard
Interrupts are system wide events that stops the execution of a currently running process. Examples of interrupts include (but are not limited to) mouse clicks, process termination, key presses, etc. Some interrupts are considered as more important to be handled first then the others. For example, a hardware interrupt such as hard drive read operation has lesser priority than a memory read. In this way, the most appropriate data structure for representing of such events is the priority queue. Demonstrate by writing an
Interrupts |
Priorities |
INT 0 |
100 |
INT 10 |
51 |
INT 11 |
52 |
INT 21 |
54 |
Step by step
Solved in 2 steps