Interrupt masking: why?
问题 I was reading up on interrupts. It is possible to suspend non-critical interrupts via a special interrupt mask. This is called interrupt masking. What i dont know is when/why you might want to or need to temporarily suspend interrupts? Possibly Semaphores, or programming in a multi-processor environment? 回答1: The OS does that when it prepares to run its own "let's orchestrate the world" code. For example, at some point the OS thread scheduler has control. It prepares the processor registers