Lecture 11: Exceptions & processor management
Exceptions Operating system’s main task: Processor management
Inf2C Computer Systems - 2011-2012
Lecture 11: Exceptions & processor management Exceptions - - PowerPoint PPT Presentation
Lecture 11: Exceptions & processor management Exceptions Operating systems main task: Processor management Inf2C Computer Systems - 2011-2012 Exceptions definition Exceptional events that interrupt normal program flow and
Inf2C Computer Systems - 2011-2012
Inf2C Computer Systems - 2011-2012 2
Inf2C Computer Systems - 2011-2012 3
Inf2C Computer Systems - 2011-2012 4
Inf2C Computer Systems - 2011-2012 5
Inf2C Computer Systems - 2011-2012 6
Inf2C Computer Systems - 2011-2012 7
Inf2C Computer Systems - 2011-2012 8
system call for I/O waiting for I/O processor idle I/O completion (interrupt) process running process running OS interrupt handler running
Inf2C Computer Systems - 2011-2012 9
process 1 running system call for I/O I/O completion Process 1 running process 2 running OS interrupt handler running
States: RUNNING: process is currently running in the CPU READY: process is not running, but could run if brought into CPU BLOCKED: process is not able to run because it is waiting for I/O to finish Transitions: I/O REQUEST: process initiates I/O I/O COMPLETION: I/O finishes DISPATCH: OS moves process into CPU and it starts executing TIMEOUT: process’s timeslice is over (only in pre-emptive multi-tasking systems)
I/O COMPLETION READY BLOCKED RUNNING I/O REQUEST DISPATCH TIMEOUT
Inf2C Computer Systems - 2011-2012 10
Inf2C Computer Systems - 2011-2012 11
Inf2C Computer Systems - 2011-2012 12
Inf2C Computer Systems - 2011-2012 13
Inf2C Computer Systems - 2011-2012 14
I/O COMPLETION READY BLOCKED RUNNING ACTIVE STATES I/O REQUEST DISPATCH TIMEOUT SUSPENDED READY SUSPENDED BLOCKED RESUME RESUME SUSPEND SUSPEND INACTIVE STATES I/O COMPLETION
Inf2C Computer Systems - 2011-2012 15