8.0 Exception Control Flow 8th chapter "In-depth understanding of computer System Original book 2nd edition"

Source: Internet
Author: User

Exception Control Flow


Definition: The response of modern operating systems to abrupt changes in control flow

Full name: Exception Control Flow

Abbreviation: ECF


Each layer form:

1. Hardware layer: Hardware detected events will trigger control abrupt transfer to exception handler;

2. Operating system layer: at the operating system level, the kernel transfers control from one user process to another through context translation;

3. Application layer: One process can signal to another process, and the receiver will suddenly transfer control to one of its signal handlers.


Description: A program can react to errors by evading the usual stack rules and performing non-local jumps to arbitrary locations in other functions.



Summary:

1. Hardware layer: Interrupt belongs to exception control flow, Linux bottom half programming, HW,SW;

2. Operating system layer: Process scheduling is abnormal control flow;

3. Application layer: Messages, signals are abnormal control flow;

4. Usual stack rules: stack is saved, handle exception control flow after recovery stack, some cases do not recover.

This article is from the "mountain Ask the Boy" blog, please be sure to keep this source http://linpeng.blog.51cto.com/9779987/1685095

8.0 Exception Control Flow 8th chapter "In-depth understanding of computer System Original book 2nd edition"

Related Article

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.