Introduction to Threads

An application implemented as a single process follows a single path of execution through the program. Most (All) applications you’ve written at this point are single process applications. When a process is blocked by a resource, then the whole process is blocked. However, many applications have other parts of the application that could continue to…

Operations on Processes

A process creation hierarchy is a graphical representation of the dynamically changing parent-child relationships among all processes. The process creation hierarchy changes each time a process is created or destroyed. When a process initiates the creation of a child process, the OS executes a create process function. The create process function allocates a new PCB, fills the PCB entries…

Parts of the PCB

CPU_state – When the process is stopped, the current state of the CPU, consisting of various hardware registers and flags, is saved in this field to be reloaded when the process resumes. PCB Data Description Data Stored As Can Change process_state This is the state of the process, running, ready, or blocked most often. Integer…

Processes

A process is an instance of a program being executed by an OS. The OS manages the processes in something called a Process Control Block (PCB). This helps it keep track of what is running, how much memory is being used and where, the program being run, the current instruction address, etc. Your operating system as a…

The OS structure

The modern OS is a complex structure comprised of millions of lines of code. Not all information is released, and is this core components, or everything including additional apps that have been included? Mac OS X Tiger (10.4) ~ 84 Million Lines of Code Windows Vista (2009) ~50 Million Lines of Code Debian 7.0 (2012)…

Role of the OS

Book chapter notes: The operating system (OS) is the software that runs on the bare hardware of a computer and provides essential support for users to develop and use applications in the most efficient and safe manner. The OS will also serve as an abstraction layer for the user/applications to interact with hardware. The OS can serve…