These lecture notes from COMP15212 provide an in-depth look into process management. Learn about process lifecycle, inter-process communication, and scheduling algorithms. Ideal for students aiming to understand how operating systems manage multiple processes efficiently.
A process is
fundamentally a container that holds all the Job 1
information needed to run
program
a
.
Job 2
Job 3
new terminated Job Y
admitted J
exit
interrupt
# First In First Out
W
ready
-running
scheduler
Job 1 Job 2 Job 3 Job Y
Executed
-
1/0 or event
- dispatch I/0 or
completition event wait
Application o
on the CPU !
Shortest Job Next
waiting *
Operating System Job Y Job 1 Job 2 Job 3
Example With 1/0 points
int a , b; JobY Job 1 Job 2 Job 3
Y
scanf ("God" &a) ;
in put
Scanf (" %d" , & b) ; #
W
3
·
int s = a + b
; compute
Printf (" % d In" s) ; , youtput
With voluntary "yield' points as well
Job Y Job 1 Job 2 Job 3
*
How a system boots
up ?
Process Control Block
Process
1 init
systemd/launched a demon process
ID
Resource
Parent ID &
Info 2
Resource
·
Priority
T
2 #
-
Info 1
daemon process
PPID
adopts orphan
PID 3 ↑ xterm
killed
Registers S
Memory
bash 7 Block 2
8
Memory
fork creates a
D
9 child process Resources Block 1
Memory Memory
*
Block 3
Orphans
-
If parent before its children the children Next PCB
a
expires ,
are adopted' by init.
- to next PCB
Zombies
Childprocesses whichhavterminatedbutthis habenobsonbyRirroradot a
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller jpxoi. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.12. You're not tied to anything after your purchase.