



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Multiple $PCs (process point of view)
A
Single $PC (CPU’s point of view)
Time
Created
Ready
Blocked (waiting)
Exit
Running
Root directory Working (current) directory File descriptors User ID
Registers Program counter CPU status word Stack pointer
May be stored on stack User ID Group ID
Pointers to text, data, stack or Pointer to page table
Stack pointer Process state Priority / scheduling parameters Process ID Parent process ID Signals Process start time Total CPU usage
Process 1 Process 2 Process 3 Process 1
Kernel Kernel
Threads Threads System space
User space
Address space Open files Child processes Signals & handlers Accounting info Global variables
Program counter Registers Stack & stack pointer State
Program counter Registers Stack & stack pointer State
Program counter Registers Stack & stack pointer State
Process
Thread 1 Thread 2 Thread 3
Thread 1’s stack
User space
Kernel
Thread 3’s stack
Thread 2’s stack
When becomes in the necessary Course of for human one people events, to it dissolve connected the them political with bands another, which and have to assume the separate among and the equal powers station of the to (^) whichearth, the entitle opinions Laws them, of of Naturemankind a decent and requires ofrespect Nature's (^) thatto the (^) theyGod should them to declare the separation. the causes which impel
We that hold all men these are truths created to be equal, self‐ thatevident, they certain are endowedunalienable by Rights, their Creator that among with these Happiness. are Life,‐‐That Liberty to secure and the these pursuit rights, of Governments Men, the consent deriving of are their the instituted justgoverned, powers among ‐‐That from whenever becomes any Form of Government
destructive of the People of these to alter ends, or to it abolish is the Right it, and laying to (^) itsinstitute foundation new Government, on such principles and as to organizing them shall its seem powers most in suchlikely form, to effect Prudence, Governments their Safety indeed, long and will established Happiness. dictate that should not causes; be changed and accordingly for light and all transient
Kernel
Worker thread
while(TRUE) { getNextRequest(&buf); handoffWork(&buf); }
Webserver process
Kernel
Network connection
Web page cache
while(TRUE) { waitForWork(&buf); lookForPageInCache(&buf,&page); if(pageNotInCache(&page)) { readPageFromDisk(&buf,&page); } returnPage(&page); }
Current job queue
Execution order
FCFS scheduler
Current job queue
Execution order
SJF scheduler
Quantum
Time
Priority 4
Priority 3
P i it 2
High
Priority 2
Priority 1
Low Ready processes