Lecture 3 - Operating Systems Processes
Lecture 3 - Operating Systems Processes
Processes
Introduction
Early computer systems allowed only one program to be executed at
a time.
This program had complete control of the system and had access to
all the system's resources.
Definition of process:
“A process is an entity which represents the basic unit of work to be
implemented in the system.”
Each process has its own memory space and resources allocated by
the operating system to ensure efficient multitasking and resource
management.
Kernel
Kernel is the core part of an Operating system; hence it has full
control over everything in the system.
When you open an audio file in the music player , the music player
needs hardware like audio devices (speaker) to perform the action of
listening to music.
It is like a personal file that the operating system keeps for every
process i.e., every process has a process control block.
Process Table
When a new process is created, the OS creates a new entry in the
process table for that process.
Each process gets a special name, like “P1,” and has its own file,
which is the PCB.
The process name and their respective PCB is stored in process table
Life Cycle of the
Process
The process life cycle is the sequence of states that a process goes
through during its existence.
Example:
Suppose you are downloading something, that is a pre-existing
process and during download you open a file or anything that starts
a process.
This new activity will reach OS and signals it to stop the
downloading process for a bit and execute the new interrupting
process.
The real-life Example:
Suppose you are writing an assignment.
Meanwhile, you get an important call on the phone. So, receiving
that call will be on priority for you.
Therefore, you will skip the writing task for a while and attend the
call first.
After finishing the call, you will resume your writing work where
you left off.
Transition 1 (T1):
It occurs when the process is created.