Operating Systems Lecture 7: Processes and Threads (Chapter 4) - Fork Example, Slides of Computer Science

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

2012/2013

Uploaded on 03/28/2013

ekana
ekana 🇮🇳

4

(44)

370 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Operating Systems
Lecture 07:
Processes (cont) & Threads (Chapter 4)
1
Docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Operating Systems Lecture 7: Processes and Threads (Chapter 4) - Fork Example and more Slides Computer Science in PDF only on Docsity!

Operating Systems

Lecture 07:

Processes (cont) & Threads (Chapter 4)

1

Fork Example (from last class)

The following program will create one or more

processes. Show how processes are created

and what is printed to the screen when this

program executes.

2

Work session: pair up with your neighbour 4

Execution of the Operating System 5

Summary

 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