Os Ch1 Operating System Overview PDF
Os Ch1 Operating System Overview PDF
Os Ch1 Operating System Overview PDF
OPERATING SYSTEM
OVERVIEW
TCS2073: OPERATING SYSTEM
INTRODUCTION
An operating system Software that
manages the computer hardware.
The hardware must provide appropriate
mechanisms:
to ensure the correct operation of the
computer system
to prevent user from interfering with the
proper operation of the system
Operating System Definition
Operating System
A program that manages a
computers hardware
Acts as an intermediary
between the computer user
and the computer hardware
OPERATING SYSTEM GOALS
Efficient use
Ensure efficient use of a
computers resources.
User convenience
Provide convenient methods of
using a computer system.
Non-interference
Prevent interference in the
activities of its users.
OPERATING SYSTEM VIEW
The operating system provides the means for
proper use of the resources in the operation of
the computer system.
It similar to a government
performs no useful function by itself
provides an environment within which other
programs can do useful work.
Two viewpoints: user view and system view.
User View
According to the interface being used - a
monitor, keyboard, mouse, and system unit.
Such a system is designed to monopolize its
resources - to maximize the performed works.
System View
Scheduling
Simple Batch
Multi-programmed batch
Time Sharing
Personal Computer
Distributed
Real- Time
Handheld
Simple Batch System
Idea : batch together jobs with similar needs.
Why?
To improve the weakness of serial programming
As a solution of serial programming, it will:
Hire machine or computer operator
Operator starts the next job after one job has
finished.
User/programmer provides cards or tape were
needed and also short description of the job.
Batch the similar needed job
Run through the computer as a group
Saving operator time.
2 main problems in simple batch system
When a scheduled job stopped the operator
should examined the cause of the problem or
why the program stopped - it will load
appropriate device with the next job and restart
the computer.
CPU at this time will sit idle. Solution:
Use of a software known as the resident monitor
- controls the sequence of events.
Programmers develop automatic jobs
sequencing for automatically transferring
control from one job to one.
The resident monitor always be in main
memory and available for execution.
Process flow of resident monitor:
The monitor reads in jobs one at a time from the input device
I/O
Memory Operation
management
End
Execution
Operating
System
Area
P1 P3 CPU
P3
P5
P8
P1
I/O
Memory Operation
management
End
Execution
Operating
System P3
Area
P1 P8 CPU
P3
P5
P8
P1
I/O
Memory On Operation
management completion
End
Execution
Operating
System P8
Area
P1 P1 CPU
P3
P5
P8
I/O
Memory On Operation
management completion
End
Execution
Operating
System P1
Area
P1 CPU
P3
P5
P8
I/O
Memory On Operation
management completion
Time Sharing System
Definition:
A collection of processors that do not share memory
or a clock.
Each node has its own local memory and each
nodes communicate with one another through
various networks.
4 major reasons or advantages for building
distributed systems: resource sharing, computation
speedup, reliability, and communication.
Resource Sharing
Reliability
Advantage:
The functions can be carried out over great
distances.
Users minimize the limitations inherent in long
distance work.
Better functionality for the cost, more flexibility in
locating resources and expanding facilities, better
user interfaces, and easier maintenance.
Real Time System
Used when rigid time requirements have been
placed on the operation of a processor or the flow
of data.
Often used as a control device in a dedicated
application.
Sensors bring data to the computer.
The computer must analyze the data.
Examples of real-time system:
Control scientific experiments system
Medical imaging systems
Industrial control systems
Automobile-engine fuel-injection systems
Home-appliance controllers
Weapon systems
A real-time system has well-defined, fixed time
constraints.
Processing must be done within the defined
constraints, or the system will fail.
Tt returns the correct result within its time constraints
- respond quickly
Type of real-time system: soft real-time systems and
hard real-time systems.
Soft real-time system
Less restrictive type of real- time system
It doesnt support for deadline scheduling
A critical real- time task gets priority over other
tasks and retains that priority until it completes.
It able to mixed with other types of systems such
as time sharing systems.
Hard real-time system
It has stricter requirements
A task must be completed by its deadline and it
supports deadline scheduling
All the process must be completed within
defined constraints or the system will be
considered fail.
Handheld System