Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
看完这篇文档,我知道键盘输入会激活irq 1指向某个中断。然后我们的处理器将对输入进行解码并执行其他操作。
My question如果其他处理器处理中断,shell 是如何知道键盘输入的?
My question
处理器 A 正在运行 shell
处理器 B 处理中断。
中断处理程序将直接将按键添加到队列中,或者触发弹出线程来执行此操作。该队列位于共享内存中,因此可以被任何 CPU 读取。