Chapter 1: Introduction: By: Parveen Kaur
Chapter 1: Introduction: By: Parveen Kaur
Chapter 1: Introduction: By: Parveen Kaur
Arbitrate: To manage , to
oversee the hardware
use
Definition of Operating System
A program that acts as an intermediate/
interface between a user of a computer and the
computer hardware.
OS is a resource allocator
Manages all resources
Decides between conflicting requests for efficient and fair
resource use
OS is a control program
Controls execution of programs to prevent errors and
improper use of the computer
What is an Operating System?
*[https://www.tutorialspoint.com/operating_system/os_types.htm]
Batch Operating Systems
Jobs are batched together by type of languages and requirements,
on first come first serve basis.
Then a special program, the monitor program, manages the execution
of each program in the batch.
The monitor program is always in the main memory and available for
execution.
Bank System, Payroll System, data entry systems.
Advantages:
improves computer efficiency as it eliminates CPU time between two
jobs.
Disadvantages:
No interaction between user and computer.
No mechanism to prioritize the processes.
Starvation, difficult to debug.
Batch Operating Systems
Advantages:
Network traffic reduces due to the division between clients and
the server.
It acts as a backup for the individual computers that are
connected to the network.
Highly secure with features like authorization of users,
hardware authentication, restrictions on shared data…
Disadvantages:
Servers are costly.
User has to depend on central location for most operations.
Maintenance and updates are required regularly.
Distributed Systems
A distributed operating system is one in which several computer
systems connected through a single communication channel.
These systems have their individual processors and memory.
Communicate through high-speed buses or telephone lines.
The individual components or systems of the network are nodes
Distributed Systems
Each system over the network keeps copy of the data, and this leads
to Reliability (Because if one system crashes , data is not lost).
Loosely coupled systems independent systems possess their own
memory unit and CPU.
Advantages:
The load on the system decreases.
If one system stops it will not affect the other, fault-tolerant.
This type of system is fault-tolerant.
Disadvantages:
Software used for such systems is highly complex.
Failure of the main network will lead to the failure of the whole
system.
Real Time Operating System
Time bound systems
It is employed mostly in those systems in which the results of the
computations are used to influence a process while it is executing,
E.g. Airlines reservation system, Heart Pacemaker.
When an event occurs outside of the computer, it is conveyed to the
computer via a sensor that is used to monitor the event. The sensor
generates a signal that the OS interprets as an interrupt. When the
operating system receives an interrupt, it starts a specific process or a
collection of processes to handle it.
Real-time systems are concurrent, which means they may respond to
several processes at once. Within the system, there are multiple separate
jobs going on, and it replies to each one in brief intervals.
Real Time Operating System
Types of Real Time OS:
1. Soft Real time Systems: There may be a deadline assigned to a
job/process, but a minor delay(Positive delay) is allowed.
Exp: online transaction systems.
2. Hard Real Time Systems: Each process is assigned a specific time
instance, and Process must complete in that time otherwise system will
crash.
Exp: airline traffic control system, heart pacemaker.
3. Firm Real Time Systems: also need to follow the deadlines. However,
missing a deadline may not have big impact but could cause undesired
affects, like a huge reduction in quality of a product.
Exp: Various types of Multimedia applications.
Operating-System Operations
OS’s are Interrupt driven. If no process, no I/o devices, No
users then OS will sit quietly waiting for some event to
occur.
This reduces the kernel code size and also increases the security
and stability of OS as we have minimum code running in kernel.
State (idle,busy)
System Calls
Allow user-level processes to request services of the operating
system.
System calls are implemented via API, API’s interact with kernel of
OS.
Example of System Calls
System call sequence to copy the contents of
one file to another file
System Call Implementation
A number is associated with each system call
System-call interface maintains a table indexed according to
these numbers
Optical Tape
Main Memory (RAM)