Os CH 1
Os CH 1
Chapter One
Operating System Overview
JAFAR B.
By Jafar 3/24/2025
Outline
2
Operating system
Function of OS
Types of interface
History of OS
By Jafar 3/24/2025
What is an Operating System?
3
hardware.
By Jafar 3/24/2025
Functions of Operating System
4
Process Management
Creating and destroying the process.
Memory Management
Keep track of which parts of memory are currently being used.
File Management
Creating and deleting of files and directories.
Mapping files onto secondary storage.
By Jafar 3/24/2025
Goals of Operating System
6
problems easier.
By Jafar 3/24/2025
Why should we study Operating System?
7
applications.
systems.
By Jafar 3/24/2025
Types of operating System
8
Multiprogrammed Systems
Real-Time Systems
Multiprocessor systems
Multiuser systems
By Jafar 3/24/2025
Batch operating System
9
User prepared a job which consist of the program, the data, and some control
information about the nature of the job (control cards), and submitted it to the
computer operator.
Reduce setup time by batching similar jobs
Monitor, a special system program in the system tape, runs each job
sequentially.
By Jafar 3/24/2025
Multiprogrammed Systems
10
processes.
process moves on some I/O work, the OS picks another process to execute till
the current one passes to I/O operation.
systems emerged.
By Jafar 3/24/2025
Real-Time Systems (RTOS)
11
operation of a processor.
Processing must be done within the time constraint or the system will fail.
A real time system is said to be function correctly only if it returns the correct
By Jafar 3/24/2025
Cont’d
13
These have more limited utility than hard real time systems.
This OSs are for applications where time-constraints is less strict. e.g.
Digital audio or multimedia is included in this category.
By Jafar 3/24/2025
Multiprocessing System
14
A multiprocessor system is simply a computer that has >1 & not <=1 CPU on
its motherboard.
There are more than one processors present in the system which can execute
more than one process at the same time.
If the operating system is built to take advantage of this, it can run different
processes (or different threads belonging to the same process) on different
CPUs.
Multiprocessing operating systems can perform more than one task
concurrently by running more than a single process.
Parallel computing is achieved
By Jafar 3/24/2025
Single User Systems
15
Example: DOS
By Jafar 3/24/2025
Cont’d.
16
By Jafar 3/24/2025
Cont’d.
17
Single-user, Multi-tasking
This is the type of operating system most people use on their
desktop and laptop computer today .
Example of single-user, multi-tasking
By Jafar 3/24/2025
Multi User Systems
19
By Jafar 3/24/2025
Multi User Systems(cont’d…)
20
Multi user Operating System allows many different users to take advantage of
The operating System must make sure that the requirement of the various
users are balanced, and that each of the programs they are using has sufficient
and separate resources so that a problem with one user doesn’t affect the entire
community of user.
By Jafar 3/24/2025
Cont’d.
21
By Jafar 3/24/2025
Operating System Services
22
This I/O may involve a file or a I/O device for specific device. Some
special function can be desired.
Therefore the operating system must provide a means to do I/O.
By Jafar 3/24/2025
Cont’d…
23
File-system manipulation -The programs need to create and delete files by name
and read and write files. Therefore the operating system must maintain each and
every files correctly. Program capability to read, write, create, and delete files.
Error detection -Ensure correct computing by detecting errors in the CPU and
The operating system should take the appropriate actions for the occurrences of
any type like arithmetic overflow, access to the illegal memory location and too
large user CPU time.
By Jafar 3/24/2025
OS Services: System Services
24
Resource Management
Multi-user or multi-tasking environment, resources such as main memory,
CPU cycles and files storage are to be allocated to each user or job.
The OS manages all kinds of resources using schedulers.
CPU scheduling algorithms are used for better utilization of CPU.
Protection
Protection refers to a mechanism or a way to control the access of
programs, processes, or users to the resources defined by a computer
system.
The OS ensures that all access to system resources is controlled.
The OS ensures that external I/O devices are protected from invalid access
attempts.
The OS provides authentication features for each user by means of
passwords.
By Jafar 3/24/2025
Structure of Operating System:
25
By Jafar 3/24/2025
Cont’d…
26
By Jafar 3/24/2025
Computer System Architecture
27
Application programs-define the ways in which the system resources are used
By Jafar 3/24/2025
Four Components of Computer System
28
By Jafar 3/24/2025
Computer Hardware Organization
29
By Jafar 3/24/2025
Cont’d..
30
By Jafar 3/24/2025
Types of interface
31
Operating System (OS) interfaces define how users and programs interact with
the system.
Two types of interface :-CLI & GUI
Command-Line Interface (CLI)
Uses text commands to interact with the OS.
By Jafar 3/24/2025
What operating systems do ?
32
By Jafar 3/24/2025
Cont’d
33
2. OS is a control program
Controls execution of programs to prevent errors and improper use of the
computer
3.Kernel View
The core of the OS that directly interacts with hardware.
Manages low-level tasks like interrupt handling, process control, and I/O
operations.
Types of kernels: Monolithic Kernel (Linux), Microkernel (MINIX,
QNX).
By Jafar 3/24/2025
Operating system objectives
34
Convenience
Make the computer more convenient to use
Abstraction
Hardware-independent programming model
Efficiency
Allows the computer system to be used in an efficient manner
Ability to evolve
Permit effective development, testing, and introduction of new
system functions without interfering with existing services
Protection
allow only authorised access to data, computation, services, etc.
By Jafar 3/24/2025
System calls
35
By Jafar 3/24/2025
Cont’d..
36
By Jafar 3/24/2025
Cont’d..
37
By Jafar 3/24/2025
History of Operating System
38
By Jafar 3/24/2025
History of operating system…
39
Reading assignment
By Jafar 3/24/2025
Ended!
40
Chapter One
Operating System Overview
By Jafar 3/24/2025