Professional Documents
Culture Documents
Os - Lecture - 03 - Process MNGNT 1
Os - Lecture - 03 - Process MNGNT 1
Ralph Tambala
MUST . CSIT
Lecture 3 1 / 21
Outline
1 What is a Process?
2 Context Switch
3 Process States
4 Process Creation
5 Process Termination
6 Interrupt Handling
7 Additional Resources/Info
Lecture 3 2 / 21
What is a Process?
What is a Process?
Lecture 3 3 / 21
What is a Process?
Process Attributes
Lecture 3 4 / 21
What is a Process?
Lecture 3 8 / 21
What is a Process?
Lecture 3 9 / 21
Context Switch
Lecture 3 10 / 21
Context Switch
Lecture 3 11 / 21
Context Switch
Lecture 3 13 / 21
Process States
Lecture 3 14 / 21
Process Creation
Lecture 3 15 / 21
Process Creation
Lecture 3 16 / 21
Process Termination
What is an Interrupt
Interrupts are signals sent to the CPU by external devices or from a
program within the computer that requires the operating system to stop
and figure out what to do next.
Interrupts are important because they give the user better control over the
computer. Without interrupts, a user may have to wait for a given
application to have a higher priority over the CPU to be ran.
Various types of interrupts include:
I/O interrupt – result when a READ or WRITE command is issued
Internal interrupt (synchronous interrupt) – result from arithmetic
operation or job instruction
Illegal arithmetic operation interrupt – dividing by zero; bad
floating-point operation generating an overflow or underflow
Illegal job instruction interrupt – protected or non-existent storage
access attempt; attempts to make system changes
Lecture 3 19 / 21
Interrupt Handling
Interrupt Handling
Lecture 3 20 / 21
Additional Resources/Info
Additional Info/Tasks
1 In Figure 6, which transitions are facilitated by short term scheduler
and which ones are facilitated by long term scheduler?
2 Can a process:
◦ block itself?
◦ run itself?
◦ Check out this hands-on Process Creation and Termination tutorial in
C.
Lecture 3 21 / 21