ISR: Interrupt Service Program

Source: Internet
Author: User

Interrupt service routines (ISR)

 

ISR: interrupt service routine)

The so-called interruption refers to an external event (such as a level change, the occurrence of a pulse edge, or the overflow of the timer count) when the CPU is processing something) the request is processed by the CPU quickly, so the CPU temporarily suspends the current job and forwards it to the processing of the event. After the incident is handled, the interrupted service returns to the place where it was originally suspended to continue its work.

Interrupt is a hardware mechanism that notifies the cpu Of an asynchronous event. Once the interrupt is identified by the system, the CPU stores partial (or all) context values, that is, the values of some (or all) registers, and jumps to a special subroutine, it is called the interrupt service program (ISR ). The interrupted service program processes events and executes task scheduling after processing is completed. The program returns to the task with the highest priority in the ready state to run (for the deprived kernel ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.