CH-1Introduction to OS
CH-1Introduction to OS
12/23/2024
Overview of Operating System
2
Outlines:-
– Role and purpose of operating system
– History of operating system
– Types of Operating system
12/23/2024
General Components of Computer
3 System
12/23/2024
Introduction
4
-- OS is program that controls the execution
of application programs.
-- An OS is a program which acts as an
(intermediary) interface between computer
system users and the computer hardware.
-- OS is a software that manages the
computer hardware.
-- OS is the one program running at all times
on the computer with all else being
application programs.
-- OS is concerned with the allocation of
resources and services, such 12/23/2024
as memory,
Cont’d
5
Functions of Operating system
– Operating system performs three functions:
1.Convenience: An OS makes a computer
more convenient to use.
2.Efficiency: An OS allows the computer
system resources to be used in an efficient
manner.
3.Ability to Evolve: An OS should be
constructed in such a way as to permit the
effective development, testing12/23/2024
and
Role and purpose of OS
6
It provides a user-friendly environment in
which a user may easily develop and
execute programs.
Otherwise, hardware knowledge would be
mandatory for computer programming.
So, it can be said that an OS hides the
complexity of hardware from uninterested
users.
12/23/2024
Cont’d
7
– To provide a convenient and efficient
environment for executing programs.
12/23/2024
Cont’d
10
The OS manages these resources and
allocates them to specific programs and
users.
With the management of the OS, a
Processor Management
Memory Management
File Management
Device Management
Concurrency Control 12/23/2024
Cont’d
11
Another aspect for the
usage of OS is that; it Application Programs
12/23/2024
cont’d
13
With the advantage of easier
programming provided by the OS, the
hardware, its machine language and the
OS constitutes a new combination called
as a virtual (extended) machine.
Operating
Machine System
Virtual
Language Machine (Extended)
Machine Language
Hardware Machine
Hardware
12/23/2024
14
12/23/2024
cont’d
15
It all started with computer hardware in
about 1940s.
ENIAC 1943
12/23/2024
cont’d
16
ENIAC (Electronic Numerical Integrator
and Computer), at the U.S. Army's
Aberdeen Proving Ground in Maryland.
built in the 1940s,
weighed 30 tons,
was eight feet high, three feet deep, and
100 feet long
contained over 18,000 vacuum tubes that
were cooled by 80 air blowers.
12/23/2024
cont’d
17
Computers were using vacuum tube
technology.
12/23/2024
cont’d
18
As time went on, card readers,
printers, and magnetic tape
units were developed as
additional hardware elements.
Assemblers, loaders and
simple utility libraries were
developed as software tools.
Later, off-line spooling and
channel program 12/23/2024
methods
cont’d
19
Finally, the idea of
multiprogramming came.
Multiprogramming means sharing
12/23/2024
cont’d
22
Another computer system is the
multiprocessor system having
multiple processors sharing
memory and peripheral devices.
With this configuration, they
have greater computing power
and higher reliability.
12/23/2024
cont’d
23
Multiprocessor systems are
classified into two as tightly-coupled
and loosely-coupled (distributed).
In the tightly-coupled one, each
12/23/2024
cont’d
26
Distributed systems are similar to
networks. However in such systems,
there is no need to exchange
information explicitly, it is handled by
the OS itself whenever necessary.
12/23/2024
28
# Some of the widely used operating systems are as follows
1. Batch Operating System
-- Does not interact with the computer directly.
-- There is an operator which takes similar jobs having same
requirement and group them into batches.
12/23/2024
Advantages of Batch Operating System:
29
Multiple users can share the batch systems
The idle time for batch system is very less
Easy to manage large work repeatedly in batch systems
Disadvantages of Batch Operating System:
Operators should be well known with batch systems
Batch systems are hard to debug
It is sometime costly
The other jobs will have to wait for an unknown time if
any job fails
12/23/2024
Examples of Batch based Operating System: Payroll System, Bank Statements etc
2. Time-Sharing(Multitasking Systems)
Operating Systems
30
-- Each task is given some time(quantum) to execute, so
that all the tasks work smoothly.
-- Each user gets time of CPU as they use single system.
-- The task can be from single user or from different users
also.
After this time interval is over OS switches over to next
task.
12/23/2024
Advantages of Time-Sharing OS:
31
12/23/2024
Network Operating System
(tightly coupled system)
33
12/23/2024
Real-Time Operating System
34
-- These types of OSs serves the real-time systems.
-- The time interval required to process and respond to
inputs is very small.
-- This time interval is called response time
12/23/2024
35
12/23/2024