Skip to main content

Memory and Virtual Memory Management

What is Memory Management?

One of the main functions of Operating systems is Memory Management. Memory Management may be defined as the process of managing the optimal use of main memory that is RAM (Random Access Memory). RAM is much faster than hard disk. So RAM is used to store data and instructions temporarily while they are being executed by CPU ( Central Processing Unit or PROCESSOR ). CPU can get data and instructions from RAM much faster that from hard disk.

As we know CPU is a very very fast device. It may execute billions of instructions per second. CPU will have to wait for data and instruction from hard disk because getting data from hard disk is very slow. That is why RAM is used. So data and instructions needed for execution are brought into main memory that is RAM first. Now RAM provides data and instructions to CPU rapidly.
What is Memory Management

What is Memory Management and virtual memory management

Operating System allocates the required memory are in main memory to programs that are a candidate for execution. The allocated memory area will be de-allocated when the program will finish execution.

What is Virtual Memory?

Some times, main memory that is RAM is not enough to run larger programs. In this case, some operating systems apply the technique of VIRTUAL MEMORY to overcome the problem of small RAM. 

The operating system uses a particular area of hard disk as additional RAM (virtually). The most wanted part of the program in execution may be kept in RAM while the remaining part of that program may on the particular part of the hard disk. This is called Virtual Memory. The area of hard disk used for virtual memory is called a SWAP file. The Swap file is used to exchange data and instructions of a running program between RAM and Hard disk.





Comments

Popular posts from this blog

Explain Main Difference Between System Software and Application Software

Topic: Explain Main Difference Between System Software and Application Software            Differentiate between system software and application software Before , explaining the main differences between application software and system software, let us know the definitions of Application software and System software with examples. What is System Software: System software is a set of programs to control all components of computer and to manage overall operations of computer system. Differences between System software and application software System software is used as a base to install and run all application software. Examples of system software include: Operating Systems, like Microsoft Windows, DOS, Unix and Linux Device Drivers like Device driver software of a Printer (found on CD normally provided with the printer) Utility Programs like AVAST anti virus, Disk Scanners and File Viewers etc. What is Application Software? Users can use Appli

Define Data and Information With Examples

DATA Data is the collection of raw facts and figures. Actually data is unprocessed, that is why data is called collection of raw facts and figures. Define Data and Information with Examples We collect data from different resources. After collection, data is entered into computer for processing. Data may be collection of words, numbers, pictures,  or sounds etc. Examples of Data 1) Student Data on Admission Forms When students get admission in a college. They fill admission form. This form  contains raw facts (data of student) like name, father’s name, address of student, obtained marks, photo graph etc. 2)    Data of Citizens During census, data of all citizens is collected. The staff will go house to house and collect data about citizens like number of persons living in a home, either they are literate or illiterate, number of children, data of each child, cast, religion, Computerized national Identity Card number, address, how many rooms and other facilities in the

Uses Of Computer In Industry

Computers are used in industry in different types of systems. Computer-Controlled Robots are Used in Industry Computer-controlled robots are used to perform many complicated jobs in industry. Robots are computer controlled programmable machines. They can perform mechanical jobs, too, like pick and place different parts, welding or painting cars etc. Different Uses of Computers in Industry  Automated Production Systems Today, computer-controlled robots are used to assemble cars. No doubt, these systems work faster than human beings. Another popular and efficient use for computer controlled robots is in the field of spray painting. The consistency and repeatability of a robot's motion have enabled near perfect quality painting while at the same time wasting no paint and leaving no place without paint. Uses of computers in industry area     Perhaps the most popular applications of robots are in industrial welding. The repeat-ability, uniformity in quality, a