An Operating System
An Operating System
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.
Processor Management
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.
Operating systems are there from the very first computer generation
and they keep evolving with time. In this chapter, we will discuss some
of the important types of operating systems which are most commonly
used.
Problem of reliability.
Question of security and integrity of user programs and data.
Problem of data communication.
Distributed operating System
Distributed systems use multiple central processors to serve multiple
real-time applications and multiple users. Data processing jobs are
distributed among the processors accordingly.
The processors communicate with one another through various
communication lines (such as high-speed buses or telephone lines).
These are referred as loosely coupled systems or distributed
systems. Processors in a distributed system may vary in size and
function. These processors are referred as sites, nodes, computers,
and so on.
The advantages of distributed systems are as follows −
With resource sharing facility, a user at one site may be able to use the
resources available at another.
Speedup the exchange of data with one another via electronic mail.
If one site fails in a distributed system, the remaining sites can potentially
continue operating.
Better service to the customers.
Reduction of the load on the host computer.
Reduction of delays in data processing.