A concise explanation of Linux hard interrupts, soft interrupts, soft interrupt instructions, signals

Source: Internet
Author: User

Hard interrupts:

1. Synchronous interrupt (internal interrupt/exception)

The interrupt that is triggered within the core when the interrupt occurs. Wait for the pipeline to complete before you can perform the interrupt. Contains soft interrupt instructions. The broken flag is set by the software or hardware.

2. Asynchronous interrupt (external interrupt/interrupt)

The interrupt that is triggered by the core outside when the interrupt occurs. Does not wait for the pipeline to complete, it executes immediately. The pipeline is void at this time. The broken flag is set by the hardware.

Soft Interrupt:

The lower half of the Linux interrupt mechanism (lower part: Soft interrupt, normal process processing). The software simulates the hardware interrupt and achieves the function of the lower half of the asynchronous call service function.

Soft Interrupt Command:

After the interrupt flag is set by the program, the hardware then performs the related operation of the interrupt.

Signal:

Hardware interrupts are simulated on the software. Interrupts a user process, and instead handles the corresponding "interrupt". This series of actions includes signal processing, signal response, signal generation--return.

A concise explanation of Linux hard interrupts, soft interrupts, soft interrupt instructions, signals

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.