G page fault interrupt a hardware device requests

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ide! Process state Pointer to address space descriptor Program counter stack pointer (all) register values uid (user id) gid (group id) euid (effective user id) Open file list Scheduling priority Accounting info Pointers for state queues Exit (“return”) code value 25 May 2012 Processes & Threads 7 University of Washington PCBs and CPU state (1)   When a process is running, its CPU state is inside the CPU   PC (IP), SP, registers   CPU contains current values   When the OS gets control because of a …   Trap: Program executes a syscall   ExcepMon: Program does something unexpected (e.g., page fault)   Interrupt: A hardware device requests service the OS saves the CPU state of the running process in that process’s PCB 25 May 2012 Processes & Threads 8 University of Washington PCBs and CPU state (2)     When the OS returns the process to the running state, it loads the hardware registers wit...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online