Memory Management: TUTORIALS POINT Simply Easy Learning
Memory Management: TUTORIALS POINT Simply Easy Learning
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 access directly by the CPU. So for a program to be
executed, it must in the main memory. 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, OS decides which process will get memory when and how much.
Allocates the memory when the process requests it to do so.
De-allocates the memory when the process no longer needs it or has been terminated.
Processor Management
In multiprogramming environment, OS decides which process gets the processor when and how much time.
This function is called process scheduling. Operating System does the following activities for processor
management.
Keeps tracks of processor and status of process. Program responsible for this task is known as traffic
controller.
Allocates the processor (CPU) to a process.
De-allocates processor when processor is no longer required.
TUTORIALS POINT Simply Easy Learning Page 3
Device Management
OS manages device communication via their respective drivers. Operating System 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. 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.
O perating systems are there from the very first computer generation. Operating systems keep evolving
over the period of time. Following are few of the important types of operating system which are most
commonly used.
CPU is often idle, because the speeds of the mechanical I/O devices are slower than CPU.
CHAPTER
Upgrades to new technologies and hardware can be easily integrated into the system.
Remote access to servers is possible from different locations and types of systems.
A n Operating System provides services to both the users and to the programs.
It provides programs, an environment to execute.
I/O operations
Communication
Error Detection
Resource Allocation
Protection
CHAPTER
I/O Operation
I/O subsystem comprised of I/O devices and their corresponding driver software. Drivers hides the
peculiarities of specific hardware devices from the user as the device driver knows the peculiarities of the
specific device.
Operating System manages the communication between user and device drivers. Following are the major
activities of an operating system with respect to I/O Operation.
I/O operation means read or write operation with any file or any specific I/O device.
Operating system provides the access to the required I/O device when required.
TUTORIALS POINT Simply Easy Learning Page 11
File system manipulation
A file represents a collection of related information. Computer can store files on the disk (secondary storage),
for long term storage purpose. Few examples of storage media are magnetic tape, magnetic disk and optical
disk drives like CD, DVD. Each of these media has its own properties like speed, capacity, data transfer rate
and data access methods.
A file system is normally organized into directories for easy navigation and usage. These directories may
contain files and other directions. Following are the major activities of an operating system with respect to file
management.
Program needs to read a file or write a file.
The operating system gives the permission to the program for operation on file.
Communication
In case of distributed systems which are a collection of processors that do not share memory, peripheral
devices, or a clock, operating system manages communications between processes. Multiple processes with
one another through communication lines in the network.
OS handles routing and connection strategies, and the problems of contention and security. Following are
the major activities of an operating system with respect to communication.
Two processes often require data to be transferred between them.
The both processes can be on the one computer or on different computer but are connected through
computer network.
Communication may be implemented by two methods either by Shared Memory or by Message Passing.