zoukankan      html  css  js  c++  java
  • kernel(一) interrupts

    the keyboard controller(the hardware device) =======================> processor=============>operating system

                                                                              an electrical signal                                        signal

    Different devices can be associated with different interrupts by means of a unique value associated with each interrupt.

    the unique value called interrupt request lines( IRQ ). for example, on the classic PC, IRQ zero is the timer interrupt 

    and IRQ one is the keyword interrupt.

    Exceptions:

                    exceptions occur synchronously with respect to the processor clock, indeed, they are often called synchronous 

    interrupts.Exceptions are produced by the processor while executing instructions either in respon to a programming error.

    Interrupt Handlers

                   The function the kernel runs in response to a specific interrupt is called an interrupt handler or interrupt service routine(ISR).

    the interrupt handlers run  in a special context called interrupt context.

    Interrupt Context

                               interrupt context is time-critical because the interrupt handler interrupts other code. it can't sleep. so this limits the 

    functions that one can call from an interrupt handler.

  • 相关阅读:
    RMQ(非log2储存方法)
    2016年5月份学习记录
    NOIP200504循环
    膜拜acm大牛 虽然我不会这题,但是AC还是没有问题的~(转自hzwer)
    最长公共子序列的长度
    菜鸟,大牛和教主三者的区别(转自hzwer)
    NOIP201205Vigenère密码
    NOIP200503采药
    公路乘车
    NOIP200902分数线划定
  • 原文地址:https://www.cnblogs.com/lxgeek/p/2475709.html
Copyright © 2011-2022 走看看