In-depth understanding of computer systems (third edition)

Chapter VIII exceptional control flow (ECF - Exceptional Control Flow)

8.1 Abnormal

(1) exception categories: interrupt, trap, fault termination

8.2 process - in the instance of a program to be executed

(1) process provides the key to the application of the abstract:

  • An independent logic control flow, it provides a false impression, as if we were using at the beginning of the program exclusively processor.
  • A private address space, it provides a false impression as if our program exclusively using the memory system.

(2) concurrent streams - a logic flow execution time overlaps with another stream.

(3) a context switch - exceptional control flow one kind of operating system kernel in the form of high use to multitask.

  Kernel maintain a context for each process, the kernel context is needed to restart a process is preempted state. It is composed by the value of some objects, these objects include general-purpose registers, floating point registers, program counter, stack user, the status register, the kernel stack and various kernel data structures, such as those described in the address space of the page table that contains information about the current process the process table, and open file table contains the process information in the file.

(4) Signal - is a message, it notifies the process Phylogenetic a certain type of event, and to allow processes and kernel interrupt other processes.

(5) Non-local jump

 

Guess you like

Origin www.cnblogs.com/nykuo/p/11230042.html