Operating System Overview & Types By: Rabia Younas: Inspire Posterity
Operating System Overview & Types By: Rabia Younas: Inspire Posterity
inspire posterity
Lecture 2
04/11/2019 1
discover yourself
inspire posterity
Embedded OS
Palm OS
Mainframe OS Multi-programmed
Multiprocessing
/Batch OS OS OS
Real-time OS
VX Works, QNX
Distributed OS
04/11/2019 2
Batch Processing System
A batch processing system is one where data are collected together in
the form of batches before processing starts.
The method of data entry for early computers was using punched
1. cards, which were handled in batches, and hence the term batch
processing.
2. Each piece of work for a batch processing system is called a job.
Batch processing is most suitable for tasks where a large amount of
3.
data has to be processed on a regular basis.
Examples of batch processing systems include payroll systems and
4.
examination report card systems, billing system etc
• Limitations
1. CPU sits idle when there is a job transition
Starvation for previous jobs
2. Speed differential
Overcome by two approaches to improve system performance by overlapping IO
and processing (Buffering and Spooling)
3. Non interactive environment
04/11/2019 3
• Batch System Concept
– To collect a tray full of jobs in the input room
– Read them on to magnetic tape
– Printing output
• Operations
– A-Programmers bring cards to 1401
– B-1401 read batch of jobs onto tape
– C-Operator carries input tape to 7094
– D-7094 does computing
– E-Operator carries output tape to 1401
– F-1401 prints
04/11/2019 4
Mainframe OS
04/11/2019 5
Multiprogramming/ multiprogrammed OS
1. Multiprogramming is a feature of an OS which allows running
multiple programs simultaneously on 1 CPU. So, say, you
may be typing in word, listening to music while in
background IE is downloading some file & anti-virus program
is scanning.
2. Programs do not run simultaneously.
3. OS divides time for each program according to priorities.
When the chance of that program comes it runs, after the
stipulated time is over, next program runs & so on. Since this
process is so fast that it appears programs are running
simultaneously.
04/11/2019 6
Multiprogramming/ multi-programmed OS cont..
04/11/2019 7
Figure depicts the layout of OS
multiprogramming system.
Job 1
The main memory consists of 5
jobs at a time, the CPU executes Job 2
one by one.
Job 3
Job 4
Job 5
Multiprogramming
04/11/2019 8
Time-Sharing System
1. Time sharing, or multitasking, is a logical extension of
multiprogramming.
2. Multiple jobs are executed by switching the CPU between
them.
3. In this, the CPU time is shared by different processes, so it is
called as “Time sharing Systems”.
4. Time slice is defined by the OS, for sharing CPU time
between processes.
Examples: Multics, Unix, etc.
04/11/2019 9
Time-Sharing System
• It is a form of multi-programmed OS which operates in a
interactive mode with a quick response time
• In Timesharing System, each user is given a time slice/quantum.
The user program/process executes for a short time before it either
finishes or needs to perform I/O. the resources are then taken away
from the user and given to some one else. This is hardly noticeable
and the user thinks as if he is using all the resources by himself
– Response time should be < 1 second
– If several jobs ready to run at the same time (CPU scheduling)
– If processes don’t fit in memory, swapping moves them in and
out to run
04/11/2019 10
Multiprocessor Operating systems
04/11/2019 11
Symmetric Multiprocessing Architecture
04/11/2019 12
A Dual-Core Design
04/11/2019 13
Distributed Operating systems
04/11/2019 14
Distributed Operating systems cont..
04/11/2019 15
Distributed Operating systems cont..
04/11/2019 16
Distributed OS
1. A distributed system is managed by a distributed operating
system.
2. It manages a group of independent computers and makes
them appear to be a single computer.
3. The development of networked computers that could be
linked and communicate with each other, gave rise to
distributed computing.
4. Distributed computations are carried out on more than one
machine. When computers in a group work in cooperation,
they make a distributed system.
04/11/2019 17
The Distributed OS involves a collection
of independent computer systems,
capable of communicating and
cooperating with each other through a
LAN / WAN.
04/11/2019 18
Distributed Operating systems cont..
Loosely coupled
1- Client-server
2- peer to peer
04/11/2019 19
Clustered Systems
04/11/2019 20
Clustered Systems
04/11/2019 21
Clustered Systems
04/11/2019 22
Real-Time OS
A real-time operating system is a multitasking operating system
that aims at executing real-time applications. The main objective
of real-time operating systems is their quick and predictable
response to events.
• Hard Real Time System. Output should be produced within
the given time constraints, otherwise, the result is life
threatening; e.g. Plane landing systems, process control in
nuclear power plants, missile control system. Secondary
storage is limited or absent, data stored in short term memory
or ROM. No virtual memory
• Soft Real Time System. Output should be produced within
the given time constraints, but if it is not, the result is not life
threatening; e.g. applications of multimedia and virtual reality
04/11/2019 23
Where Can Real-Time Systems be Found?
• Industrial Applications
Example 1: Chemical Plant Control
Example 2: Automated Car Assembly Plant
• Medical:
Example 3: Robot Used in Recovery of
Displaced Radioactive Material
• Peripheral Equipment:
Example 4: Laser Printer
• Telecommunication Applications
Example 5: A Cellular System
04/11/2019
• Aerospace:
Example 6: Computer On-Board an Aircraft
• Internet and Multimedia Applications
Example 7: Video Conferencing
• Consumer Electronics
Example 8: Cell Phones
• Defence Applications
Example 9: Missile Guidance System
• Miscellaneous Applications:
Example 10: Railway Reservation System
04/11/2019
Automated Car Assembly Plant
04/11/2019
Embedded OS
1. Embedded operating systems are designed to be used in
embedded computer systems.
2. They are designed to operate on small machines like
mobile phones, PDAs, etc.
3. They are able to operate with a limited number of
resources. They are very compact and extremely efficient
by design.
Examples
Windows CE and Minix 3, Palm OS
04/11/2019 27
Types of Operating Systems
1. Batch OS/Mainframe OS
2. Multiprogrammed /multiprogramming OS
3. Time-sharing (Multitasking) OS
4. Multiprocessing OS
5. Distributed OS
6. Clustered OS
7. Real time OS
8. Embedded OS
04/11/2019 28
Functions of operating system
• OS performs two functions:
1. Abstraction;
Providing application programmers (and
application programs) a clean abstract set of
resources instead of complex hardware
2. Resource Management;
Managing the hardware resources
The Operating System as an Extended Machine
An Abstraction ?
• Operating system hides the hardware and present
programs (and their programmers) with nice, clean,
elegant, consistent, abstractions to work.
• Operating systems turn the ugly interface into the
beautiful interface
04/11/2019 30
Functions of OS ; as an Extended Machine
04/11/2019 31
The Operating System as a Resource Manager
Resources
• Consist of processors, memories, timers, disks, mice,
network interfaces, printers, and a wide variety of other
devices.
• All modern OS to provide controlled allocation of the
these resources to multiple programs run at the same
time.
Problem: Shared Printer; Mess-up output by all programs
Solution: Buffering
04/11/2019 32
The Operating System as a Resource Manager
04/11/2019 33
The Operating System as a Resource Manager
04/11/2019 34
QUESTION:
HOW?
04/11/2019 35