This document is a compilation of my notes for COE 628: Operating Systems at TMU. All information comes from my professor’s lectures, as well as the course textbook *Operating Systems: Internals and Design Principles *****by Stallings.
Adam Szava - 2tor.ca
W2023
Summary of Chapters 1 and 2:
Our goal is to manage the execution of applications such that:
The approach taken is to rely on a model in which the execution of an application corresponds to the existence of one or more processes.
<aside> ➕ A process (in this context) is an entity that consists of two essential elements:
At any given point in time, while the program is executing, this process can be uniquely characterized by a number of elements, including:
All this information is stored in a data structure called a process control block, created and managed by the OS. The point is that the PCB contains sufficient information to interrupt a running process, and later resume execution, as if the interrupt had not occurred. The PCB is the key tool which allows the OS to support multiple processes.
A process consists of program code, associated data, and a PCB. For a single-processor computer, at any given time, at most one process is actually executing and that process is in the running state.