Lecture 07
Lecture 07
Fall 2023
Operating Systems
Definition
It is a set of programs (called modules ) that cooperate for the good man-
agement and use of computer resources .
These modules can be classified into two classes, primary and secondary.
The primary modules constitute the kernel of an operating system.
The operating system provides a set of services to both computer users and
user programs through its modules:
It provides computer users with a set of services to:
Execute their programs.
Exploit computer resources in an efficient way.
Make programming tasks easier for developers.
Present a virtual machine.
It provides user programs with an environment for their execution.
Definition
It is a set of programs (called modules) that cooperate for the good man-
Computer Resources. There are two types:
agement and use of computer resources .
Physical Resources. It includes all hardware components
These modules can be classified
that programs into two
use for their classes, primary and secondary.
execution.
The primary modules constitute the kernel of an operating system.
CPU: The processor, used to execute instructions.
Memory (RAM): Used to store programs and their data.
The operating system provides a set of services to both computer users and
I/O devices: Used to perform input and output operations.
user programs:
Logical Resources. It includes the non-hardware compo-
It provides
nentscomputer users with
that a computer a set of services to:
manipulates.
Software and programs: Run on a computer.
ExecuteFiles:
theirAre
programs.
data structures. They Make programming
have extensions tasks
docx, pdf,easier
Exploitpng,
computer resources in for developers.
cpp, py, class, jpeg, exe, h, so, out, iso, pptx, mp4, ...
an efficient way. Instance of a program being
Process: Present a virtual machine.
executed.
Network connection: connections with other computers.
It provides System
user programs
and userwith an environment
variables: for locations.
shared memory their execution.
Dr. Karim Lounis Information Technology Essentials Fall 2023 9 / 18
Operating Systems
Error Detection. The operating system needs to detect and correct errors
when they occur during programs execution (e.g., device failure). For each
type of error, the operating system takes the appropriate action.
Services provided by the operating system to the users and system itself:
Resource Allocation. The operating system ensures that resources are
shared in an optimal manner among multiple users and jobs.
Accounting. The operating system keeps track of which user uses how
much and what kind of resources for accounting and statistics.
Protection and Security. The operating system provides certain security
services to its users (or processes) to preserve their security and privacy.
To launch the OS, the kernel needs to be located and loaded into the
memory then executed (Booting the system is loading the kernel):
It is performed by a dedicated program known as the bootstrap loader
(e.g., GRUB in GNU/Linux) generally loaded by the BIOS2 .
When the computer starts/reboots, the CPU instruction register is
loaded with a predefined memory location (bootstrap first instruction)
to start the execution.
The bootstrap loader loads the kernel into memory and executes it (we
say, the system is running).
The bootloader also performs diagnostic tasks, e.g., it determines the
state of the machine (hardware) and devices.
Which module of the operating system provides the user with a GUI
or CLI to interact with the operating system to run programs and
software?
End.