0% found this document useful (0 votes)
8 views39 pages

Lec 2

Uploaded by

ziadyaserx0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views39 pages

Lec 2

Uploaded by

ziadyaserx0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39

Operating System I

(CS215)
Lecture 2:Types of operating
systems

Dr. Abdelrahman Elsayed


Agenda
 Evolution and types operating systems What
Operating Systems Do
 Computer System Architecture
 Computer System Environments
Evolution and types
operating systems

 Open Shop
 Batch Processing
 Multiprogramming
 Timesharing
 Personal Computing
 Distributed Systems

Operating System Concepts – 10th Edition 1.3 Silberschatz, Galvin and Gagne ©2018
OPEN SHOP

 We begin the story of operating systems in 1954


when computers had no operating systems but
were operated manually by their users:
 Each user was allocated a minimum 15-minute
slot, of which time he usually spent 10 minutes
in setting up the equipment to do his
computation.
 By the time he got his calculation going, he may
have had only 5 minutes or less of actual
computation completed
• wasting two thirds of his time slot.
Operating System Concepts – 10th Edition 1.4 Silberschatz, Galvin and Gagne ©2018
OPEN SHOP cont.

Operating System Concepts – 10th Edition 1.5 Silberschatz, Galvin and Gagne ©2018
OPEN SHOP cont.

Operating System Concepts – 10th Edition 1.6 Silberschatz, Galvin and Gagne ©2018
BATCH PROCESSING

 The first operating system (OS) was created in the early


1950s and was known as GMOS.
• General Motors has developed OS for the IBM
computer.
 The early operating systems took drastic measures to
reduce idle computer time:
• the users were simply removed from the computer
room!
• They were now asked to prepare their programs and
data on punched cards and submit them to a
computing center for execution.
• The open shop had become a closed shop.
Operating System Concepts – 10th Edition 1.7 Silberschatz, Galvin and Gagne ©2018
BATCH PROCESSING cont.
 The OS major task was to transfer control automatically
from one job to the next.
 The OS was always resident in memory.
 To speed up processing, operators batched together
jobs with similar requirement/needs and ran them
through the computer as a group. Thus, the
programmers would leave their programs with the
operator.
 The operator would sort programs into batches with
similar requirements and, as the computer became
available, would run each batch.
 The output from each job would be sent back to the
appropriate programmer.
BATCH PROCESSING cont.

Operating System Concepts – 10th Edition 1.9 Silberschatz, Galvin and Gagne ©2018
Advantages of Batch Operating System

 Multiple users can


share the batch
systems.
 The idle time for the
batch system is very
less.
 It is easy to manage
large work repeatedly
in batch systems.

Operating System Concepts – 10th Edition 1.10 Silberschatz, Galvin and Gagne ©2018
Disadvantages of Batch Operating System

 Batch systems are hard to debug.


 The other jobs will have to wait for an unknown
time if any job fails.
 In batch operating system the processing time
for jobs is commonly difficult to accurately
predict while they are in the queue.

Operating System Concepts – 10th Edition 1.11 Silberschatz, Galvin and Gagne ©2018
MULTIPROGRAMMING

 Multiprogramming Operating Systems can be simply


illustrated as more than one program is present in the
main memory and any one of them can be kept in
execution. This is basically used for better utilization of
resources.
 Interrupts enabled a processor to simulate concurrent
execution of multiple programs and control simultaneous
input/output operations. This form of concurrency
became known as multiprogramming.

Operating System Concepts – 10th Edition 1.12 Silberschatz, Galvin and Gagne ©2018
Advantages of Multi-Programming Operating
System

 Multi Programming increases the Throughput of the


System.
 It helps in reducing the response time

Disadvantages of Multi-Programming Operating


System
 There is not any facility for user interaction of system
resources with the system.

Operating System Concepts – 10th Edition 1.13 Silberschatz, Galvin and Gagne ©2018
Time sharing

 Time-sharing computer interacts with many


simultaneous users through a number of remote
consoles.
 Such a system will look to each user like a large private
computer
 When the user wants service, he simply starts typing in a
message requesting the service.
 The computer is always ready to pay attention to any key
that he may strike.

Operating System Concepts – 10th Edition 1.14 Silberschatz, Galvin and Gagne ©2018
Multitasking (Timesharing)

 The CPU switches jobs so frequently that users can


interact with each job while it is running, creating
interactive computing
• Each user has at least one program executing in
memory  process
• If several jobs ready to run at the same time 
CPU scheduling
• Virtual memory allows execution of processes not
completely in memory

Operating System Concepts – 10th Edition 1.15 Silberschatz, Galvin and Gagne ©2018
Advantages of Time-Sharing OS

 Improved User Experience: Time-sharing provides an


interactive environment that allows users to
communicate with the computer in real time, providing a
better user experience than batch processing.
Disadvantages of Time-Sharing OS
 Security Risks: Time-sharing systems require careful
management of user access, authentication, and
authorization to ensure the security of data and software.
 Complexity: Time-sharing systems are complex and
require advanced software to manage multiple users
simultaneously. This complexity increases the chance of
bugs and errors.

Operating System Concepts – 10th Edition 1.16 Silberschatz, Galvin and Gagne ©2018
PERSONAL COMPUTING

 In the 1970s microprocessors and semiconductor


memories made it feasible to build powerful personal
computers.
 Reduced hardware cost eventually allowed people to
own such computers.
 personal computers have offered programmers a chance
to build small software systems of outstanding quality
using the best available programming languages and
design methods.

Operating System Concepts – 10th Edition 1.17 Silberschatz, Galvin and Gagne ©2018
PERSONAL COMPUTING Cont.

Operating System Concepts – 10th Edition 1.18 Silberschatz, Galvin and Gagne ©2018
Distributed Systems
 Collection of separate, possibly heterogeneous, systems connected
together.
 Network Operating System provides features between systems
across network
• Communication scheme allows systems to exchange messages
• Illusion of a single system

Operating System Concepts – 10th Edition 1.19 Silberschatz, Galvin and Gagne ©2018
Computer System Architecture

Operating System Concepts – 10th Edition 1.20 Silberschatz, Galvin and Gagne ©2018
Computer-System Architecture

 Most systems use a single general-purpose processor


• Most systems have special-purpose processors as well
 Multiprocessors systems growing in use and importance
• Also known as parallel systems, tightly-coupled systems
• Advantages include:
1. Increased throughput
2. Economy of scale
3. Increased reliability – graceful degradation or fault tolerance
• Two types:
1. Asymmetric Multiprocessing – each processor is assigned
a specie task.
2. Symmetric Multiprocessing – each processor performs all
tasks

Operating System Concepts – 10th Edition 1.21 Silberschatz, Galvin and Gagne ©2018
Symmetric Multiprocessing Architecture

Operating System Concepts – 10th Edition 1.22 Silberschatz, Galvin and Gagne ©2018
Dual-Core Design
 Multi-chip and multicore
 Systems containing all chips
• Chassis containing multiple separate systems

Operating System Concepts – 10th Edition 1.23 Silberschatz, Galvin and Gagne ©2018
Non-Uniform Memory Access System

Operating System Concepts – 10th Edition 1.24 Silberschatz, Galvin and Gagne ©2018
Clustered Systems

 Like multiprocessor systems, but multiple systems working together


• Usually sharing storage via a storage-area network (SAN)
• Provides a high-availability service which survives failures
 Asymmetric clustering has one machine in hot-standby mode
 Symmetric clustering has multiple nodes running applications,
monitoring each other
• Some clusters are for high-performance computing (HPC)
 Applications must be written to use parallelization
• Some have distributed lock manager (DLM) to avoid conflicting
operations

Operating System Concepts – 10th Edition 1.25 Silberschatz, Galvin and Gagne ©2018
Clustered Systems

Operating System Concepts – 10th Edition 1.26 Silberschatz, Galvin and Gagne ©2018
PC Motherboard

Operating System Concepts – 10th Edition 1.27 Silberschatz, Galvin and Gagne ©2018
Computer System Environments

Operating System Concepts – 10th Edition 1.28 Silberschatz, Galvin and Gagne ©2018
Computing Environments

 Traditional
 Mobile
 Client Server
 Peer-to-Peer
 Cloud computing
 Real-time Embedded

Operating System Concepts – 10th Edition 1.29 Silberschatz, Galvin and Gagne ©2018
Traditional

 Stand-alone general-purpose machines


 But blurred as most systems interconnect with others (i.e.,
the Internet)
 Portals provide web access to internal systems
 Network computers (thin clients) are like Web terminals
 Mobile computers interconnect via wireless networks
 Networking becoming ubiquitous – even home systems
use firewalls to protect home computers from Internet
attacks

Operating System Concepts – 10th Edition 1.30 Silberschatz, Galvin and Gagne ©2018
Mobile

 Handheld smartphones, tablets, etc.


 What is the functional difference between them and a
“traditional” laptop?
 Extra feature – more OS features (GPS, gyroscope)
 Allows new types of apps like augmented reality
 Use IEEE 802.11 wireless, or cellular data networks for
connectivity
 Leaders are Apple iOS and Google Android

Operating System Concepts – 10th Edition 1.31 Silberschatz, Galvin and Gagne ©2018
Client Server

 Client-Server Computing
• Dumb terminals supplanted by smart PCs
• Many systems now servers, responding to requests generated by
clients
 Compute-server system provides an interface to client to
request services (i.e., database)
 File-server system provides interface for clients to store and
retrieve files

Operating System Concepts – 10th Edition 1.32 Silberschatz, Galvin and Gagne ©2018
Peer-to-Peer

 Another model of distributed system


 P2P does not distinguish clients and servers
• Instead all nodes are considered peers
• May each act as client, server or both
• Node must join P2P network
 Registers its service with central
lookup service on network, or
 Broadcast request for service and
respond to requests for service via
discovery protocol
• Examples include Napster and Gnutella,
Voice over IP (VoIP) such as Skype

Operating System Concepts – 10th Edition 1.33 Silberschatz, Galvin and Gagne ©2018
Cloud Computing
 Delivers computing, storage, even apps as a service
across a network
 Logical extension of virtualization because it uses
virtualization as the base for it functionality.
• Amazon EC2 has thousands of servers, millions of
virtual machines, petabytes of storage available
across the Internet, pay based on usage

Operating System Concepts – 10th Edition 1.34 Silberschatz, Galvin and Gagne ©2018
Cloud Computing (Cont.)
 Many types
• Public cloud – available via Internet to anyone willing to pay
• Private cloud – run by a company for the company’s own use
• Hybrid cloud – includes both public and private cloud components
• Software as a Service (SaaS) – one or more applications available
via the Internet (i.e., word processor)
• Platform as a Service (PaaS) – software stack ready for application
use via the Internet (i.e., a database server)
• Infrastructure as a Service (IaaS) – servers or storage available
over Internet (i.e., storage available for backup use)

Operating System Concepts – 10th Edition 1.35 Silberschatz, Galvin and Gagne ©2018
Cloud Computing (cont.)
 Cloud computing environments composed of traditional OSes, plus
VMMs, plus cloud management tools
• Internet connectivity requires security like firewalls
• Load balancers spread traffic across multiple applications

Operating System Concepts – 10th Edition 1.36 Silberschatz, Galvin and Gagne ©2018
Real-Time Embedded Systems

 Real-time embedded systems most prevalent form of computers


• Vary considerable, special purpose, limited purpose OS, real-
time OS
• Use expanding
 Many other special computing environments as well
• Some have OSes, some perform tasks without an OS
 Real-time OS has well-defined fixed time constraints
• Processing must be done within constraint
• Correct operation only if constraints met

Operating System Concepts – 10th Edition 1.37 Silberschatz, Galvin and Gagne ©2018
Free and Open-Source Operating Systems
 Operating systems made available in source-code format rather than
just binary closed-source and proprietary
 Counter to the copy protection and Digital Rights Management
(DRM) movement
 Started by Free Software Foundation (FSF), which has “copyleft”
GNU Public License (GPL)
• Free software and open-source software are two different ideas
championed by different groups of people
 https://www.gnu.org/philosophy/open-source-misses-the-
point.en.html
 Examples include GNU/Linux and BSD UNIX (including core of Mac
OS X), and many more
 Can use VMM like VMware Player (Free on Windows), Virtualbox
(open source and free on many platforms - http://www.virtualbox.com)
• Use to run guest operating systems for exploration

Operating System Concepts – 10th Edition 1.38 Silberschatz, Galvin and Gagne ©2018
End of Chapter 1

Operating System Concepts – 10h Edition Silberschatz, Galvin and Gagne ©2018

You might also like