



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The code for a c program that demonstrates the creation of processes using the fork system call. The document also includes a summary of the key concepts related to processes in operating systems, such as process control blocks, states, and process management.
Typology: Slides
1 / 7
This page cannot be seen from the preview
Don't miss anything!




1
Fork Example (from last class)
2
Work session: pair up with your neighbour 4
Execution of the Operating System 5
The most fundamental concept in a modern OS is the process The principal function of the OS is to create, manage, and terminate processes Process control block contains all of the information that is required for the OS to manage the process, including its current state, resources allocated to it, priority, and other relevant data The most important states are Ready, Running and Blocked The running process is the one that is currently being executed by the processor A blocked process is waiting for the completion of some event A running process is interrupted either by an interrupt or by executing a supervisor call to the OS 7