2 (Types of Operating System)
2 (Types of Operating System)
CAT 202
Prepared By:
Ms. Shivani Jaswal
Assistant Professor
1
Syllabus
Unit I
Basics of Operating Systems: Definition, Generations of operating systems,
Types of Operating Systems: Mainframe, Desktop, Multiprocessor, Distributed,
Clustered, Multiprogramming, Real time, Embedded and Time sharing.
Fundamentals of Operating System: Multitasking, Multiprogramming,
Timesharing, Buffering, Spooling
Operating System Components: Process Management Component , Memory
Management component, I/O Management component , File Management
component, Protection System, Networking management component,
Command interpreter.
2
Syllabus
UNIT- II
3
Syllabus
Unit-III
Overview of Unix/Linux, Unix / Linux Startup, User accounts, Logging in and out,
Shutting out, Dual Booting, Command line, Getting Help using man and info pages,
creating files, Unix / Linux file and directory structure, Browsing the file system,
Mail, Unix / Linux Commands, Using Linux GUI- KDE and Gnome, Processes in
Unix / Linux, Bash Shell introduction, Command line shortcuts, Standard I/O,
Redirecting I/O and errors, using pipes, Using vi-editor.
Shell Programming.
4
Types of Operating System
Main Frame
Multiprocessor
5
Types of Operating System
6
Types of Operating System
Mainframe Systems:
• Reduce setup time by batching similar jobs
• Automatic job sequencing – automatically transfers control from
one job to another.
• Resident monitor
initial control in monitor
control transfers to job
when job completes control transfers pack to monitor
7
Multiprogrammed System
8
Multiprogrammed System contd…
9
Multiprogrammed System contd…
As shown in fig, at the particular situation, job' A' is not utilizing the
CPU time because it is busy in I/ 0 operations.
Hence the CPU becomes busy to execute the job 'B'.
Another job C is waiting for the CPU for getting its execution
time. So in this state the CPU will never be idle and utilizes
maximum of its time.
A program in execution is called a "Process", "Job" or a "Task".
10
Multiprogrammed System contd…
• OS keeps the several jobs in memory. This set of jobs can be subset
of jobs kept in job pool- which contain all the jobs that enter the
system.
•Jobs may have to wait for some task, such as I/O operation to
complete.
11
Multiprogrammed System contd…
12
Multiprogrammed System contd…
• Multiprogramming systems provide an environment in which
various system resources (for example CPU, memory, and peripheral
devices) are utilized effectively, but they do not provide user
interaction with the computer system.
CPU Scheduling: If several jobs are ready to run at the same time, by
the processor, this decision is known as CPU scheduling.
15
(Multiprocessing) Parallel System
• Multiprocessor Operating System refers to the use of two or more central
processing units (CPU) within a single computer system.
•These types of systems are used when very high speed is required to process a large
volume of data.
•These systems are generally used in environment like satellite control, weather
forecasting etc.
• LINUX is one of the most widely used multiprocessing systems, but there are many
others, including OS/2 for high-end PCs.
17
Multiprocessing (Parallel) System contd…
Symmetric multiprocessing (SMP)
• Each processor runs an identical copy of the operating system.
Asymmetric multiprocessing
• Each processor is assigned a specific task; master processor controls the
system and other processors either look for the instruction from master
processor or have their predefined tasks.
• More common in extremely large systems
18
Symmetric Processing Architecture
CPU 1 CPU 2
CPU 3 CPU 4
19
Asymmetric Processing Architecture
CPU
1(master)
20
Advantages of Multiprocessing System
Improved Reliability: Multiprocessing have better reliability than single-
processor because of the presence of multiple processors. If one of the
processors break down, the other processor(s) automatically takes over the
system workload until repairs are made.
Economical: The clock, bus, peripheral devices and memory are shared. As a
result, it is cheaper to have multiprocessor systems than multiple single
processor systems.
22
Disadvantages of Multiprocessing System
1. A very sophisticated operating system is required to schedule, balance and
coordinate the input, output and processing activities of multiple CPUs.
3. Such systems are very expensive. In addition to the high charges paid
initially, the regualr operation and maintenance of these system is also a
costly affair.
23
Desktop System
Personal computers – computer system dedicated to a single user.
May run several different types of operating systems (Windows, Mac OS,
UNIX, Linux)
24
Distributed System
• Distribute the computation among several physical processors.
• Loosely coupled system – each processor has its own local memory;
processors communicate with one another through various communications
lines, such as high-speed buses or telephone lines.
25
Distributed System contd…
• It is a collection of physically separate, possibly heterogeneous computer
system that are networked to provide the use3rs to various resources that the
system maintains.
27
Distributed System contd.
It has two types:
Client server model
Peer to peer model
Client server model: in this, the client server model, the client send a resource
request to the server and the server in turn provides the requested resources as
the response back to the client.
Peer to peer model: In this model, all the computers behave as clients. These
clients communicate with each other for exchange of their resources.
28
Client -server contd.
Client 1
Server Network
Client 2 Client 3
29
Peer to Peer contd.
Client Client
Network
30
Advantages of distributed System
• Resource Sharing: If number of different sites care connected to one another, thena
user at one site may be able to use the resources available at another site.
• Reliability: If one fails in a distributed system, the remaining sites can continue
operating, giving them better reliability.
• Clustered computers share storage and are closely linked via local are
network (LAN) or a faster interconnect.
• Clustering is usually used to provide high availability service, that is, service
will continue even if one or more systems in the cluster fail.
32
Clustered System contd….
• A layer of cluster software runs on the cluster nodes.
• If the monitored machine fails, the monitoring mach can take ownership of its
storage and restart the applications that were running on the failed machine.
• The users and clients of the applications see only a brief interruption of
service.
33
Clustered System contd….
• It can be structure in two types:
• Asymmetrically: In this, one machine is in hot-standby mode. The hot
standby machine does nothing but monitor the active server. If the server
fails, the hot standby host becomes the active server.
• Symmetrically: In this, two or more hosts are running applications and are
monitoring each other. This mode is obviously more efficient, as it uses all
of the available hardware.
NOTE: To provide shared access to data, the system must also supply
access control and locking to ensure that no conflicting operations occur.
This function is known as distributed lock manager (DLM).
34
Real Time Systems
• Embedded computers are the most prevalent form of computers in existence.
• These devices are found everywhere from car engines and manufacturing
robots to VCRs and microwave ovens.
35
Real Time Systems
• Embedded systems almost always run real-time operating systems.
• A real time system is used when rigid requirements have been placed on the
operation of a processor or flow of data, thus it is often used as a control device
in a dedicated applications.
• Sensors bring data to the computer, analyze it and possibly adjust controls to
modify the sensor inputs.
• A real time system functions correctly only if it returns the correct result
within its time constraints.
36
Real Time Systems contd…
Hard real-time:
37
Real Time Systems contd…
Soft real-time
•Less restrictive type of real system.
•These systems are not affected by the lapse of time interval and do not cause
any critical failure.
38
Handheld Systems
• A handheld computer is a computer that can conveniently be stored in a
pocket (of sufficient size) and used while you're holding it.
• Today's handheld computers, which are also called personal digital assistants
(PDAs), can be divided into those that accept handwriting as input and those
with small keyboards.
• The original handheld that accepted handwriting was Apple's Newton, which
was later withdrawn from the market.
• Today, the most popular handheld that accepts handwritten input is the
PalmPilot from 3Com. Philips, Casio, NEC, Compaq, and other companies
make handhelds with small keyboards.
39
Handheld Systems
• Handheld computers are typically used for personal information manager
(PIM) types of applications: maintaining schedules, keeping names and phone
numbers, doing simple calculations, taking notes, and, with a modem,
exchanging e-mail and getting information from the Web.
• Keyboards have tiny keys that take getting used to. Those that handle
handwriting also impose constraints and require some learning.
40
Handheld Systems
• Personal Digital Assistants (PDAs)
E:g: Cellular telephones
Issues:
• Limited memory
• Slow processors
• Small display screens.
41
Other Links for this Topic
http://nptel.ac.in/courses/106108101/pdf/Lecture_Notes/Mod%201_LN.p
df
https://www.youtube.com/watch?v=5AjReRMoG3Y
42
Thank You
43