Interrupt door, trap door, call door, and task door

Source: Internet
Author: User

On the NT platform, common applications run in ring3 and the operating system runs in ring0. If you need to execute some privileged commands in the program, the program must be transferred to ring0. Because privileged commands executed by user programs may damage system resources, the operating system provides necessary services to user State programs through the "Gate" mechanism for the purpose of protection and stability. There are four types of X86 doors: interrupt door, trap door, call door, and task door, which are supported by the CPU from the hardware layer.
These four processes let the CPU find where to execute the exception or interrupt processing code. They are the interrupt and Exception Processing mechanisms.
There are some differences in handling abnormal interruptions, such as traps that can be nested, and interruptions cannot be nested by default, you need to know the categories of Interrupt exceptions and select the appropriate door for handling.

From csapp

Interrupt door, trap door, call door, and task door

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.