Chapter 1 OS
Chapter 1 OS
SYSTEM
WHAT IS AN OPERATING
SYSTEM?
Operating system is a system software that acts
as an interface between user and the computer
hardware.
Operating
System
User
Hardware
WHAT IS AN OPERATING
SYSTEM?
Operating system is a System
Software.
Act as interface b/w User and the
Hardware.
Organized set of programs.
resources(H/W, S/W).
Schedules task, manages storage.
Resource allocator.
TEACHING AND EVALUATION
SCHEME
Examples of OS
Market share of OS
Functions of OS
Evolution of OS
systems
Basic Concepts
POINTS TO BE
COVERED…
Conceptual view of operating system
Objectives of operating system
Examples of OS
Market share of OS
Functions of OS
Evolution of OS
systems
Basic Concepts
Conceptual View of
Operating System
User 1 User 2 User n
System Application
Softwares Softwares
Software
Operating System
Program
Software
System Application
Softwares Softwares
Software
Operating System
Examples of OS
Functions of OS
Evolution of OS
systems
Basic Concepts
OBJECTIVES
OBJECTIVES
Convenience: An OS makes a computer more
convenient to use.
Efficiency: An OS allows the computer system
Examples of OS
Functions of OS
Evolution of OS
systems
Basic Concepts
EXAMPLES OF OS
EXAMPLES OF OS
DIFFERENT VERSIONS OF
WINDOWS
DIFFERENT VERSIONS OF WINDOWS
MOBILE OS
• Android OS (Google Inc.)
• BlackBerry OS (Research In Motion)
• iPhone OS / iOS (Apple)
• MeeGo OS (Nokia and Intel)
• Palm OS (Garnet OS)
• Symbian OS (Nokia)
• webOS (Palm/HP)
POINTS TO BE
COVERED…
Conceptual view of operating system
Objectives of operating system
Examples of OS
Functions of OS
Evolution of OS
systems
Basic Concepts
FUNCTIONS OF OPERATING
SYSTEM
FUNCTIONS
Process
Management
PROCESS MANAGEMENT
Process is a program in execution.
E.g. Word processing program being run by the user is a
process.
E.g. System task such as sending output to a printer is
also a process.
Processes are allocated with resources when it is created
or while it is running.
Once the process is done with use of resources, OS
storage.
Security
SECURITY
Protect resources and information
against destruction & unauthorized
access.
Types of Security:-
External Security
Adequate back-up data
Internal Security
User authentication
Device
Management
DEVICE MANAGEMENT
Manages the peripheral devices.
Accepts input from the user and
give corresponding output.
Consist of policies and procedures
for handling I/O devices.
Command
Interpretation
COMMAND
INTERPRETATION
Act as primary interface between the
user & the rest of the system.
Understands & executes commands
entered by human beings.
POINTS TO BE
COVERED…
Conceptual view of operating system
Objectives of operating system
Examples of OS
Functions of OS
Evolution of OS
systems
Basic Concepts
EVOLUTION OF OS
EVOLUTION OF OS
EVOLUTION OF OS
SERIAL PROCESSING (1940S –
MID 1950S)
SERIAL PROCESSING (1940S – MID
1950S)(CONT…)
The serial processing performs operations
in serial manner/FIFO manner.
All jobs are prepared and stored on the
punched cards.
After this card will be entered in the
system.
TIME-SHARING SYSTEM
Advantages
Efficient CPU utilization.
Provides interactive use of a computer system at
a reasonable cost.
Time shared OS uses CPU scheduling and
multiprogramming to provide each user with a
small portion of time-shared computer.
User can interact with a job when it is executing,
but it is not possible in batch system.
PARALLEL SYSTEM
PARALLEL SYSTEM(CONT…)
In parallel system, number of processors
executes job in parallel.
Parallel OS are used to interface multiple
network computers to complete task in parallel.
Parallel OS are able to use software to manage
systems.
DISTRIBUTED SYSTEM(CONT..)
Advantages
If a number of sites connected by high-speed
communication lines, it is possible to share the
resources from one site to another site.
For e.g. s1 and s2 are two sites. These are
connected by some communication lines. The
site s1 is having a printer, but the site does not
have any print. Then the system can be altered
without moving from s2 to s1.
Therefore, resource sharing is possible in the
distributed operating system.
If a resource or a system fails in one site due to
technical problem, we can use other
systems/resources in some other sites. So the
REAL-TIME SYSTEM
REAL-TIME SYSTEM(CONT..)
Response time is always fixed.
Time to display the result after
processing has been fixed by the
processor.
Real-time systems are used at the
places where higher and timely
response is needed.
Used in reservation.
Two types:
time.
Used with controls and robotics requiring precision
movements.
Conflicts with time-sharing systems, not supported
Examples of OS
Functions of OS
Evolution of OS
Basic Concepts
BASIC CONCEPTS IN OS
STRUCTURE OF OS
MONOLITHIC
STRUCTURE
MONOLITHIC STRUCTURE
The entire operating system works in the
kernel space in the monolithic system.
This increases the size of the kernel as well
is faster.
As it is one single piece of software it
binary file.
MONOLITHIC STRUCTURE
Disadvantages
If any service fails in the monolithic
Privileged mode
SYSTEM CALLS (CONT…)
If program is executed in user mode, it
doesn’t have direct access to memory, h/w,
resources.
If program is executed in Kernel mode, it
Source Destinatio
File n File
Accept input
SYSTEM CALLS (CONT…)
Source Destinatio
File n File
Accept input
Acquire output
Filename
Write prompt to screen
Accept input
SYSTEM CALLS (CONT…)
Source Destinatio
File n File
Source Destinatio
File n File
Source Destinatio
File n File
loop
Read from input file
Write to output file
Until
read Close output file
fails
SYSTEM CALLS (CONT…)
Source Destinatio
File n File
loop
Read from input file
Write to output file
Until
read Close output file
fails
Write completion message to
screen
Terminate normally
SYSTEM CALLS (CONT…)
Source Destination
File File
Acquire Input Filename
Write prompt to screen
Accept input
Acquire output Filename
Write prompt to screen
Accept input
Open input file
If file doesn’t exist, ABORT.
Create output file
loop If file exist, ABORT
Read from input file
Write to output file
Until Close output file
read Write completion message to
fails screen
Terminate normally
SYSTEM CALLS (CONT…)
Categories of System Calls
System calls can be grouped into five
major
categories as follows.
Process control
File management.
Device management
Information Maintenance and
Communication.
SYSTEM CALLS (CONT…)
Process control
create process, terminate process
end, abort
load, execute
get process attributes, set process
attributes
wait for time
wait event, signal event
allocate and free memory
SYSTEM CALLS (CONT…)
File management
create file, delete file
open, close file
read, write, reposition
get and set file attributes
Device management