Functions of Operating System
Functions of Operating System
• An Operating System acts as a communication bridge (interface) between the user and
computer hardware. The purpose of an operating system is to provide a platform on which
a user can execute programs conveniently and efficiently.
• The main goal of the Operating System is to make the computer environment more
convenient to use and the Secondary goal is to use the resources most efficiently.
FUNCTIONS
• Memory managment
• Processor Management
• Device Management
• File Management
• User Interface or Command Interpreter
• Network Management
• Booting the Computer
MEMORY MANGMENT
• It keeps track of primary memory, i.e., which bytes of
memory are used by which user program. The memory
addresses that have already been allocated and the
memory addresses of the memory that has not yet been
used.
• In multiprogramming, the OS decides the order in which
processes are granted memory access, and for how long.
• It Allocates the memory to a process when the process
requests it and deallocates the memory when the process
has terminated or is performing an I/O operation.
Memory managment
Processor Management
• In a multi-programming environment, the OS decides the order in
which processes have access to the processor, and how much
processing time each process has. This function of OS is called
Process Scheduling.
• An operating system manages the processor’s work by allocating
various jobs to it and ensuring that each process receives enough
time from the processor to function properly.
• Keeps track of the status of processes. The program which
performs this task is known as a traffic controller. Allocates the
CPU that is a processor to a process. De-allocates processor
when a process is no longer required.
PROCESS MANAGMENT
Device Management
• Keeps track of all devices connected to the system. Designates a
program responsible for every device known as the Input/Output
controller.
• Decide which process gets access to a certain device and for how
long.
• Allocates devices effectively and efficiently. Deallocates devices
when they are no longer required.
• There are various input and output devices. An OS controls the
working of these input-output devices.
• It receives the requests from these devices, performs a specific
task, and communicates back to the requesting process.
File Management
• A file system is organized into directories for efficient or easy
navigation and usage. These directories may contain other
directories and other files. An Operating System carries out the
following file management activities. It keeps track of where
information is stored, user access settings, the status of every file,
and more. These facilities are collectively known as the file
system. An OS keeps track of information regarding the creation,
deletion, transfer, copy, and storage of files in an organized way. It
also maintains the integrity of the data stored in these files,
including the file directory structure, by protecting against
unauthorized access.
FILE MANAGMENT
User Interface or Command Interpreter
• The user interacts with the computer system through the
operating system. Hence OS acts as an interface between the
user and the computer hardware. This user interface is offered
through a set of commands or a graphical user interface (GUI).
Through this interface, the user makes interacts with the
applications and the machine hardware.
Network Management
• Network Communication: Think of them as traffic cops for your
internet traffic. Operating systems help computers talk to each
other and the internet. They manage how data is packaged and
sent over the network, making sure it arrives safely and in the
right order.
• Settings and Monitoring: Think of them as the settings and
security guard for your internet connection. They also let you set
up your network connections, like Wi-Fi or Ethernet, and keep an
eye on how your network is doing. They make sure your computer
is using the network efficiently and securely, like adjusting the
speed of your internet or protecting your computer from online
threats.
Booting the Computer
• The process of starting or restarting the computer is
known as booting. If the computer is switched off
completely and if turned on then it is called cold booting.
Warm booting is a process of using the operating system
to restart the computer.