Professional Documents
Culture Documents
Intro To Operating System
Intro To Operating System
An Operating System (OS) is an interface between a computer user and computer hardware. An
operating system is a software which performs all the basic tasks like file management, memory
management, process management, handling input and output, and controlling peripheral devices
such as disk drives and printers.
Some popular Operating Systems include Linux Operating System, Windows Operating system,
VMS, OS/400, AIX, z/OS, etc.
Definition
An operating system is a program that acts as an interface between the user and the computer
hardware and controls the execution of all kinds of programs.
Memory Management
Processor Management
Device Management
File Management
Security
Control over system performance
Job accounting
Error detecting aids
Coordination between other software and users
Memory Management
Memory management refers to management of Primary Memory or Main Memory. Main memory
is a large array of words or bytes where each word or byte has its own address.
Main memory provides a fast storage that can be accessed directly by the CPU. For a program to be
executed, it must in the main memory. An Operating System does the following activities for
memory management −
Keeps tracks of primary memory, i.e., what part of it are in use by whom, what part are not
in use.
In multiprogramming, the OS decides which process will get memory when and how much.
Allocates the memory when a process requests it to do so.
De-allocates the memory when a process no longer needs it or has been terminated.
In multiprogramming environment, the OS decides which process gets the processor when and for
how much time. This function is called process scheduling. An Operating System does the following
activities for processor management −
Keeps tracks of processor and status of process. The program responsible for this task is
known as traffic controller.
Allocates the processor (CPU) to a process.
De-allocates processor when a process is no longer required.
Device Management
An Operating System manages device communication via their respective drivers. It does the
following activities for device management −
Keeps tracks of all devices. Program responsible for this task is known as the I/O controller.
Decides which process gets the device when and for how much time.
Allocates the device in the efficient way.
De-allocates devices.
File Management
A file system is normally organized into directories for easy navigation and usage. These directories
may contain files and other directions.
An Operating System does the following activities for file management −
Keeps track of information, location, uses, status etc. The collective facilities are often
known as file system.
Decides who gets the resources.
Allocates the resources.
De-allocates the resources.
Following are some of the important activities that an Operating System performs −
Security − By means of password and similar other techniques, it prevents unauthorized
access to programs and data.
Control over system performance − Recording delays between request for a service and
response from the system.
Job accounting − Keeping track of time and resources used by various jobs and users.
Error detecting aids − Production of dumps, traces, error messages, and other debugging
and error detecting aids.
Coordination between other softwares and users − Coordination and assignment of
compilers, interpreters, assemblers and other software to the various users of the
computer systems.
Recourse manager
A computer system has many resources (hardware and software), which may be required to
complete a task. The commonly required resources are input/output devices, memory, file storage
space, CPU, etc. The operating system acts as a manager of the above resources and allocates them
to specific programs and users, whenever necessary to perform a particular task. Therefore the
operating system is the resource manager i.e. it can manage the resource of a computer system
internally. The resources are processor, memory, files, and I/O devices. In simple terms, an operating
system is an interface between the computer user and the machine.
An operating system acts similarly like government means an operating system performs no useful
function by itself; though it provides an environment within which other programs can do useful
work.
Kernel is central component of an operating system that manages operations of computer and
hardware. It basically manages operations of memory and CPU time. It is core component of an
operating system. Kernel acts as a bridge between applications and data processing performed at
hardware level using inter-process communication and system calls.
Kernel loads first into memory when an operating system is loaded and remains into memory until
operating system is shut down again. It is responsible for various tasks such as disk management,
task management, and memory management.
It decides which process should be allocated to processor to execute and which process should be
kept in main memory to execute. It basically acts as an interface between user applications and
hardware. The major aim of kernel is to manage communication between software i.e. user-level
applications and hardware i.e., CPU and disk memory.
Objectives of Kernel :
5. Nano Kernel –
It is the type of kernel that offers hardware abstraction but without system services. Micro Kernel
also does not have system services therefore the Micro Kernel and Nano Kernel have become
analogous.
Example :
EROS etc.
Advantage :
It offers hardware abstractions without system services.
Disadvantage :
It is quite same as Micro kernel hence it is less used.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the
DSA Self Paced Course at a student-friendly price and become industry ready.
GUI and CUI are two types of User Interfaces. GUI stands for Graphical User Interface while CUI
stands for Character User Interface. In this article we will be discussing the differences between
these two interfaces and which one has advantages over the other.
User Interface : User Interface comprises of everything the user can use to interact with the
computer. It is basically the means by which the user and computer system can interact using input
and output devices.
GUI: GUI stands for Graphical User Interface. This is a type of user interface where user interacts
with the computer using graphics. Graphics include icons, navigation bars, images etc. Mouse can be
used while using this interface to interact with the graphics. It is a very user-friendly interface and
requires no expertise. Eg: Windows has GUI..
CUI: CUI stands for Character User Interface. This is a type of user interface
where user interacts with computer using only keyboard. To perform any action a command is
required. CUI is precursor of GUI and was used in most primitive computers. Most modern
computers use GUI and not CUI. Eg: MS-DOS has CUI.
Unix is an Operating System that is truly the base of all Operating Systems like Ubuntu, Solaris,
POSIX, etc. It was developed in the 1970s by Ken Thompson, Dennis Ritchie, and others in the AT&T
Laboratories. It was originally meant for programmers developing software rather than non-
programmers
Layer-1: Hardware –
Layer-2: Kernel –
It interacts with hardware and most of the tasks like memory management, task scheduling, and
management are done by the kernel.
Shell is the utility that processes your requests. When you type in a command at the terminal, the
shell interprets the command and calls the program that you want.
There are various commands like cp, mv, cat, grep, id, wc, nroff, a.out and more.
Advantages:
1. The overall time taken by the system to execute all the programmes will be reduced.
2. The Batch Operating System can be shared between multiple users.
Disadvantages:
Advantages:
1. Since equal time quantum is given to each process, so each process gets equal opportunity
to execute.
2. The CPU will be busy in most of the cases and this is good to have case.
Disadvantages:
1. Process having higher priority will not get the chance to be executed first because the
equal opportunity is given to each process.
1. Since the systems are connected with each other so, the failure of one system can't stop
the execution of processes because other systems can do the execution.
2. Resources are shared between each other.
3. The load on the host computer gets distributed and this, in turn, increases the efficiency.
Disadvantages:
1. Since the data is shared among all the computers, so to make the data secure and
accessible to few computers, you need to put some extra efforts.
2. If there is a problem in the communication network then the whole communication will be
broken.
Advantages:
1. Hard Real-time: In this type, a small delay can lead to drastic change. So, when the time
constraint is very important then we use the Hard Real-time.
2. Soft Real-time: Here, the time constraint is not that important but here also we are
dealing with some real-time data.
Advantages:
A pipe is a form of redirection (transfer of standard output to some other destination) that is used in
Linux and other Unix-like operating systems to send the output of one command/program/process
to another command/program/process for further processing. The Unix/Linux systems allow stdout
of a command to be connected to stdin of another command. You can make it do so by using the
pipe character ‘|’.
Pipe is used to combine two or more commands, and in this, the output of one command acts as
input to another command, and this command’s output may act as input to the next command and
so on. It can also be visualized as a temporary connection between two or more commands/
programs/ processes. The command line programs that do the further processing are referred to as
filters.
This direct connection between commands/ programs/ processes allows them to operate
simultaneously and permits data to be transferred between them continuously rather than having to
pass it through temporary text files or through the display screen.
Pipes are unidirectional i.e data flows from left to right through the pipeline.