Professional Documents
Culture Documents
UNIT 1 Operating System
UNIT 1 Operating System
Example:
If we will take Example of our Laptop. What
hardware basically is CPU. Which we call brain of the System.
Then input, output devices which includes: keyboard, mouse,
printer, scanner and then RAM that we call the Main memory
and Secondary memory that is Hard disk.
So, when we access a lot of these hardware. When I am
accessing my system, then I am just accessing these devices.
But am I directly accessing these devices?
No, I am accessing through Operating System. OS is working
as an interface here.
Example:-
I Have to give a print command simply I
have a word file. That needs to be printed then I cannot
print it directly.
First, I must write a program for it. So that printer will
know it that it has to print.
• Advantage of Operating System :-
4. Hardware:
Provides basic computing resources like CPU,
memory, I/O devices.
5. Operating System:
Controls and coordinates the use of
hardware among the various application programs for
the various users.
6. Application Program:
Define the ways in which the
system resources are used to solve the computing
problems of the users.
Advantage:
• Multiple users can share the batch systems.
• The idle time for the batch system is very less.
• It is easy to manage large work repeatedly in batch
systems.
Disadvantage:
• Once the job is submitted, the user did not have
any interaction with it.
• It proves to be costly sometimes.
• If any job fails, then it is difficult to predict the
time.
2. Time Sharing Operating System:
The time-sharing
Operating System works with time sharing concept.
Here, the CPU will provide a same time to each process
to complete its task as soon as possible weather it is a
long process or short process.
Advantage:
• If the process of a task is completed
then the time between the other tasks
increases.
• Each task is given equal importance.
• The CPU idle time can be decreased.
Disadvantage:
• Sometimes in this Operating
System there may be a problem
of data communication.
• Problem of reliability.
Example: Multics, Unix etc.
Advantage:
• Maximum Utilization of devices and
system.
• Less time required in task shifting
• More Focus on Running Applications.
• Can also be used in embedded Systems
like in Transport and others.
Disadvantage:
• Few Tasks runs at same time.
• Heavy Systems Resources Usage.
• Algorithms used are complex.
• Specific device drivers and
interrupts signals are needed.
6. Multiprogramming Operating System:
In a
multiprogramming System there are one or more
programs loaded in main memory which are ready to
execute.
Only one program at a time is to get the CPU for
executing the instructions, while all the others are
waiting for their turn.
Advantage:
• Multiprogramming Increase is the
throughout of the System.
• It helps in reducing the response time.
Disadvantage:
• The most efficient memory
management is required.
• It is quite complex.
7. Multiprocessing Operating System:
In Operating System
to improve the performance of more than one CPU can
be used within one computer System called
multiprocessor operating System.
Multiple CPU are interconnected so that a job can be
divided among them for faster execution. When a job
finishes, results from all CPU are collected and compiled
to give the final output.
Advantage:
• Due to the multiprocessing system,
processing task can be distributed
among several processors.
• As Several processor increases, more
work can be done in less time.
Disadvantage:
• It is more complex.
8. Multitasking OS:
Multitasking OS is a logical extension of
Multi programming OS that enables multiple programs
simultaneously.
It allows a user to perform more than one computer task
at a same time.
Types Of Multitasking OS
Advantage:
• This system is capable for executing
multiple application simultaneously.
• Each process is assigning specific
length of time.
Disadvantage:
• The multiple processors are busier at the
same time to complete any task in a
multitasking environment, so the CPU
generates more heat.
Disadvantage:
• Less optimization
• High modification is required
• Customization is time taking process.
1. Program Execution:
It is the OS that manages how a
program is going to be executed. It loads the program
into the memory after which it is executed. The OS is
responsible for the smooth execution of both user
and system programs. the OS utilizes various
resources available for the efficient running of all
types of functionalities.
3. User Interface:
OS provides a user interface. The user
interface may be command line user interface or
graphical user interface.
5. File Management:
The Operating System helps in
managing files also. If a program needs access to a
file, it is the OS that give access. These permissions
include read-only, read-write, etc. it also provides a
platform for the user to create, and delete files.
6. Memory Management:
Operating System first check
whether the upcoming program fulfil all requirement
to get memory space or not, if all things good, it
checks how much memory space will be sufficient for
program and then load the program into memory at
certain location.
7. Process Management:
An important function of an
Operating System, ensuring that multiple programs
can run smoothly and efficiently.
Managing resources and handling communication
between processes.
8. Security:
OS keep our computer safe from an
unauthorized user by adding security layer to it.
Basically, Security is nothing but just a layer of
protection which protect computer from bad guys like
viruses.
OS provides firewall and antivirus software and ensure
good safety of computer and personal information.
9. Privacy:
OS give us facility to keep our essential
information hidden like having a lock on our door,
where only you can enter and other are not allowed.
Basically, it respects our secrets and provide us facility
to keep it safe.