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"