Unit 1
Unit 1
OPERATING SYSTEM
1. An operating system is a program that acts as a intermediatory between
user and computer hardware.
2. Operating system (OS) is essential system software that manages
computer hardware and software resources, providing common services
for computer programs.
3. The purpose of an Operating system is to provide an environment in
which a user can execute a program.
4. Operating system is a integrated set of programs that we use to manage
various resources and overall operations of a computer system.
5. An operating system is a important part of almost every computer
system. A computer system is divided into four components.
Hardware.
Operating system.
Software.
Users.
The operating system control & coordinate the & use of hardware among the
various application program for the various users.
It can be explore from two view points-
1. User view
2. System view
1.User View: User view refers to how a system appears and functions from the
perspective of the end-user. It encompasses the user interface, interactions,
and overall experience.
Spooling:
Spooling is an acronym for simultaneous peripheral operation online.
Spooling is the process of temporary storage of data for use and execution
by a device, program, or system. Data is sent to and stored in main
memory or other volatile storage until it is requested for execution by a
program or computer.
Spooling is a process in which data is temporarily held to be used and
executed by a device, program, or system. Data is sent to and stored in
memory or other volatile storage until the program or computer requests
it for execution.
Advantages:
The spooling operation makes use of a disc as a very large buffer.
It enables applications to run at the CPU’s speed while I/O devices
operate at their full speed.
Spooling, on the other hand, is capable of overlapping I/O operations for
one job with processor operations for another.
Disadvantages:
Depending on the volume of requests received and the number of input
devices connected, spooling needs a lot of storage.
Since the SPOOL is created in the secondary storage, having lots of input
devices active at once may cause the secondary storage to fill up quickly
and increase disc traffic. As a result, the disc becomes slower and slower
as the volume of traffic grows.
Disadvantages:
1. It is highly complicated and sophisticated.
2. The CPU scheduling is required.
3. Memory management is needed in the operating system because all
types of tasks are stored in the main memory.
4. The harder task is to handle all processes and tasks.
Process States:
A process is a program that is being executed. During its execution, a
process goes through different states. Understanding these states helps us
see how the operating system manages processes, ensuring that the
computer runs efficiently.
States of process are as follows:-
1. New- This process is about to be created but not yet created. It is the
program that is present in secondary memory that will be picked up by
the OS to create the process.
2. Ready- After the creation of a process, the process enters the ready state
i.e. the process is loaded into the main memory. The process here is
ready to run and is waiting to get the CPU time for its execution.
3. Running State- The process is chosen from the ready queue by the CPU
for execution and the instructions within the process are executed by any
one of the available CPU cores.
4. Waiting- From the Running state, a process can make the transition to
the block or wait state depending upon the scheduling algorithm or the
intrinsic behaviour of the process.
5. Terminated- When a process finishes its execution, it comes in the
termination state.
IMPORTANT QUESTIONS