Unit 1 Operating System
Unit 1 Operating System
The Operating System Tutorial is divided into various parts based on its
functions such as Process Management, Process Synchronization, Deadlocks
and File Management.
We need a system which can act as an intermediary and manage all the
processes and resources present in the system.
In Batch operating system, access is given to more than one person; they
submit their respective jobs to the system for the execution.
The system put all of the jobs in a queue on the basis of first come first serve
and then executes the jobs one by one. The users collect their respective
output when all the jobs get executed.
The purpose of this operating system was mainly to transfer control from one
job to another as soon as the job was completed. It contained a small set of
programs called the resident monitor that always resided in one part of the
main memory. The remaining part is used for servicing jobs.
Advantages of Batch OS
Disadvantages of Batch OS
1. Starvation
For Example:
There are five jobs J1, J2, J3, J4, and J5, present in the batch. If the execution
time of J1 is very high, then the other four jobs will never be executed, or
they will have to wait for a very long time. Hence the other processes get
starved.
2. Not Interactive
Batch Processing is not suitable for jobs that are dependent on the user's
input. If a job requires the input of two numbers from the console, then it will
never get it in the batch processing scenario since the user is not present at
the time of execution.
In a multiprogramming environment, when a process does its I/O, The CPU can start
the execution of other processes. Therefore, multiprogramming improves the
efficiency of the system.
Advantages of Multiprogramming OS
Disadvantages of Multiprogramming OS
o The multiple processors are busier at the same time to complete any
task in a multitasking environment, so the CPU generates more heat.
o Computer case
o Motherboard
o Power supply
o CD/DVD drives/writers
o Random-access memory (RAM)
o Hard disk(s)
o Numerous external devices, such as a keyboard, printer, visual display
and pointing device
Memory
The physical memory present inside the system is where storage occurs. It is
also known as Random Access Memory (RAM). The system may rectify
the data that is present in the main memory. So, every executed program
should be copied from physical storage like a hard disk. Main memory is
determined as an important part of OS because it specifies how many
programs may be executed simultaneously.
Kernel
A multi-user operating system makes use of the Kernel component, which is
built in a low-level language. This component is embedded in the computer
system's main memory and may interact directly with the system's H/W.
Processor
The CPU (Central Processing Unit) of the computer is sometimes known
as the computer's brain. In large machines, the CPU would necessitate more
ICS. On smaller computers, the CPU is mapped in a single chip known as a
microprocessor.
User Interface
The user interface is the way of interaction between users and all software
and hardware processes. It enables the users to interact with the computer
system in a simple manner.
Device Handler
Each input and output device needs its device handler. The device handler's
primary goal is to provide all requests from the whole device request queue
pool. The device handler operates in continuous cycle mode, first discarding
the I/O request block from the queue side.
Spooler
Spooler stands for 'Simultaneous Peripheral Output on Line'. The
Spooler runs all computer processes and outputs the results at the same
time. Spooling is used by a variety of output devices, including printers.
Distributed System
A distributed system is also known as distributed computing. It is a collection
of multiple components distributed over multiple computers that interact,
coordinate, and seem like a single coherent system to the end-user. With the
aid of the network, the end-user would be able to interact with or operate
them.
Time-Sliced Systems
It's a system in which each user's job gets a specific amount of CPU time. In
other words, each work is assigned to a specific time period. These time
slices look too small to the user's eyes. An internal component known as the
'Scheduler' decides to run the next job. This scheduler determines and
executes the job that must perform based on the priority cycle.
Multiprocessor System
Multiple processors are used in this system, which helps to improve overall
performance. If one of the processors in this system fails, the other processor
is responsible for completing its assigned task.