25 may 2012 processes threads 5 university of

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: n the process isn’t running   PC, SP, registers, etc.   when a process is unscheduled, the state is transferred out of the hardware into the PCB   (when a process is running, its state is spread between the PCB and the CPU)   Note: It’s natural to think that there must be some esoteric techniques being used   fancy data structures that you’d never think of yourself Wrong! It’s pre5y much just what you’d think of! 25 May 2012 Processes & Threads 5 University of Washington The PCB   The PCB is a data structure with many, many fields:                     process ID (PID) parent process ID execuMon state program counter (IP), stack pointer, registers address space info UNIX user id, group id scheduling priority accounMng info pointers for state queues In Linux:   defined in task_struct (include/linux/sched.h)   over 95 fields!!! 25 May 2012 Processes & Threads 6 University of Washington Process ID Pointer to parent List of children This is (a simplification of) what each of those PCBs looks like ins...
View Full Document

This document was uploaded on 04/04/2014.

Ask a homework question - tutors are online