Chapter - 1
Chapter - 1
System
A.K
1
Outlin
e
• What is an Operating
System?
• Operating System
Functions
• Operating System
features
• Operating System variants
2
Operating
• System
A modern computer system consists of:
– one or more processors,
– main memory, disks, printers,
– a keyboard, a display,
– network interfaces, and
– other input output devices,
– All in all, a complex system.
• In order to:
– Manage all these devices for granting proper
function and interaction with each other,
– To create user friendly environment, and
– User programs with a simpler interface to the
hardware,
• there is a program known as Operating 3
system.
What is an Operating
System?
• A program that acts as an intermediary
between a user of a computer and the
computer hardware.
• Operating system goals:
– Manage computer system resources.
– Make the computer system convenient to use.
software
Operating System
Functions
• An operating system’s main functions
are:
– Multiprogramming, multiprocessor
– Computer resource management
– Provides a user interface
– Runs software utilities and programs
– Schedule jobs
– Provide tools to configure the operating
system and hardware
– Administers user actions and accounts
– Enforce security measures
7
Operating System
Functions…
An operating system’s main functions
are:…
• Schedule processes & multiplex CPU
• Provide mechanisms for IPC and
synchronization
• Manage main memory
• Manage other resources (E.g,
Input/Output)
• Provide convenient persistent storage
(files)
• Maintain system integrity, handle failures
• Enforce security policies (e.g., access 8
control)
• Give users and processes an interface
Operating System
functions
9
Operating System
• features
Authentication of users
– password, passphrase comparison,
biometrics, digital authentication (SSL, CA, PKI,
Kerberos, DS)
• Mandatory (enforce multilevel security by
classifying the data and users into various
security classes) and
• Discretionary Access Control (grant privileges to
users)
• Protection of memory
– user space, paging, segmentations
• File and I/O device access control
To preserve
– access integrity,
control matrix consistency
10
(critical 10
section)
• Enforcement of sharing resources
Operating System
features…
• Fair service
– no starvation and deadlock
• Inter-process communication &
synchronization
– Shared variable (e.g, using semaphores)
• Protection of data
– encryption, isolation
–…
11
Computer System
Components
1.Hardware – provides basic computing resources
(CPU, memory, I/O devices).
2.Operating system – controls and coordinates the
use of the hardware among the various
application programs for the various users.
3.Applications programs – define the ways in which
the system resources are used to solve the
computing problems of the users (compilers,
database systems, video games, business
programs).
4.Users (people, machines, other computers).
12
Abstract View of System
Components
13
Operating System Type
14
Mainframe
Systems
• The Operating systems for main frames are
heavily oriented towards processing of
many jobs at once (many I/O devices).
• Reduce setup time by batching similar jobs.
• Automatic job sequencing – automatically
transfers control from one job to another.
• They typically offer three kinds of services:
– Batch System
– Transaction processing system
– Time sharing system
15
Memory Layout for a Simple Batch
System
Batch system - is one
that processes routine
jobs in the absence of
interactive user.
E.g: Multiprogrammed
Batch Systems
• Allocation of resources.
17
Transaction processing
system
• handles large number of small requests.
• Each unit of work is small but the system
must handle thousands per second.
• E.g. check processing at bank, airline
reservation.
18
Time-Sharing Systems–Interactive
Computing
• The CPU is multiplexed among several jobs that
are kept in memory and on disk (the CPU is
allocated to a job only if the job is in memory).
– A job swapped in and out of memory to the disk.
– On-line communication between the user and the
system is provided;
• when the operating system finishes the execution of one
command, it seeks the next “control statement” from the
user’s keyboard.
– On-line system must be available for users to
access data and code.
19
Desktop Operating
Systems
• Personal computers – computer system dedicated
to a single user.
– I/O devices – keyboards, mice, display screens,
small printers.
– User convenience and responsiveness.
b
u 22
s
-
b
Multiprocessor
• Are
OS…
similar to
multiprogrammed
uniprocessor operating
systems in many respects
and
– they perform
resource
management and
– hide unpleasant features of
the hardware to provide a
• Arehigh-level
more machine
complex
abstraction to the
because users.
multiple
processors execute
tasks concurrently
– with physical concurrency
as opposed to virtual 23
concurrency in
multiprogrammed
uniprocessors.
Parallel Systems (Multiprocessor
OS)… multiprocessing (SMP)
• Symmetric
– Each processor runs an identical copy of the operating
system.
– There is one copy of the supervisor or kernel that
can be executed by all processors concurrently.
– Many processes can run at once without
performance deterioration.
Bus
• Most modern operating systems support
SMP
• It permits the parallel execution of a 24
single task.
• Examples : Hydra OS
Parallel Systems (Multiprocessor
OS)… multiprocessing
• Asymmetric
– Master-slave. Operating system in master
processor.
– Each processor except master is assigned a
specific task
– master processor schedules and allocated work
to slave processors.
– More common in extremely large systems
Issue Bus
s Failure of the master processor.
•
• The master can become a bottleneck
• Examples : Cyber 170 and DEC(Digital Equipment 25
corporation)
Multiprocessor
OS… Configuration
Separate supervisor
• Each CPU has its own operating system
• There is very little coupling among processors and
• each processor acts as an autonomous, independent
system.
Bus
29
Network Operating
System
• Bridges, Routers, Wireless access
points
30
Network Operating
System…
General structure of a network operating
system
31
Network Operating
System…
Employs a client-server
model
33
Distributed Operating
• System
Distribute the computation among several
physical processors.
• Loosely coupled system – each processor has its own
local memory, clock, peripheral devices,…
• processors communicate with one another through
various communications lines, such as high-speed
buses or telephone lines.
• Advantages of distributed systems.
– Resources Sharing
– Computation speed up – load sharing
– Reliability
– Communications
34
Distributed Operating
• Users System…
not aware of
multiplicity of machines.
• Manages resources in a
distributed system
– Seamlessly and transparently to the
user
• Looks to the user like a
centralized OS
– But operates on multiple
independent CPUs
• Provides transparency
– Location, migration,
concurrency, replication,…
• Presents users with a 35
virtual uniprocessor
Distributed Operating
Systems…
• Requires networking infrastructure.
• Local area networks (LAN) or Wide
area networks (WAN)
• May be either client-server or peer-
to-peer systems.
36
Distributed OS vs. Network
OS.
38
Types of Operating
System
SystemsDescription Main Goal
50
Embedded
• systems…
Embedded computing
systems
Computers are in here...
within– electronic
Computing devices
systems
embedded and here...
52
Product: Cannon EOS
3D Digital Camera
Microprocessor: DIGIC
II Image Processor
Windows CE
Embedded
OS…
Industrial Automation
• Process and plant control systems in
nuclear power plants, Hydro power
plants, industries.
49
Embedded
OS…
Automotive Electronics
Product: S class
Mercedes
Microprocessors: around
100 embedded
processors !
51
Embedded
OS…
Product: Samsung
BlackJack II
Smartphone
Microprocessor: TI
OMAP (ARM +
DSP)
62
Wireless Sensor
Networks
Control (actuator) and monitor (sensor)
networks Initial approach
Data collecting
networks Wired
Present approach
Ad-hoc capacity
Local processing
Wireless Easy
deployment
63
Smart card operating
system
• The smallest operating system runs on
smart card.
• Contains CPU chip.
• Processing power and memory
constraints.
• They handle a single function like
electronic payment
• Some of them are java oriented.
55