Compare the Difference Between Similar Terms

Difference Between

家 / Technology / IT / Systems /物理和虚拟内存之间的差异

物理和虚拟内存之间的差异

May 19, 2011Posted byIndika

Physical vs Virtual Memory

Physical memory and Virtual memory are two forms of memory used for storing data in a computer. Physical memory refers to chips such as RAM (Random Access Memory) memory and storage devices such as hard disks that are used to store data. Virtual memory is a memory space created by Operating system when the computer does not have enough physical memory to execute a program. Virtual memory is created by combining RAM with the hard drive space. Virtual memory allows executing large programs faster when the RAM is not enough.

Physical Memory

As mentioned earlier, physical memory refers to the RAM and the hard disks in the computer that are used to store data. In a computer the operating system, application programs and currently used data are kept in the RAM, so that they could be accessed quickly by the processor. RAM could be accessed faster than the other storage devices such as the hard disk and CD-ROM. But the data in the RAM exists only while the computer is running. When the power is turned off, all the data in the RAM are lost and the operating system and other data are loaded again to the RAM from the hard disk when the computer is turned on. Hard disk is a non-volatile memory (a memory that keeps data even when it is not powered) that is used to store data in a computer. It is made up of circular disks called platters that stores magnetic data. Data is written and read to and from the platters using read/ write heads.

Virtual Memory

虚拟内存is used when the computer lacks the RAM space for executing a program. Virtual memory combines the RAM space with the hard disk space. When the computer does not have enough RAM space to execute a program, the virtual memory transfers data from the RAM to a paging file, which frees up the space in the RAM. A portion of the hard disk is used to store the page file. This transferring process is done so rapidly so that the user does not feel a difference. Virtual memory can hold an entire block of data while the part that is currently executing resides on the RAM. Therefore the virtual memory allows the operating system to run several programs at the same time thus increasing the degree of multiprogramming. While increasing the size of the programs that could be executed, virtual memory provides cost benefits since hard disk memory is less expensive than the RAM.

What is the difference between Physical and Virtual Memory

While physical memory refers to physical devices that stores data in a computer such as the RAM and hard disk drives, virtual memory combines the RAM space with the hard drive space to store data in the RAM, when the RAM space is not enough. Part of the hard disk is used to store the page files that are used by the virtual memory to store the data that are transferred from the RAM. Even though swapping the data between the page files in the hard disk and the RAM (via the virtual memory) is very fast, too much swapping could slower the overall performance of the system.

Related posts:

RAM和ROM之间的区别RAM和ROM之间的区别 Difference Between Multiprogramming and Time Sharing Systems Difference Between Intel Mobile Processors Core i7 and Core i7 Extreme Edition Difference Between Netbook and Laptop Difference Between Amazon Cloud Drive and External Hard Drive

Filed Under:Systems标记为:hard disks,Multiprogramming,non volatile memory,分页文件,physical memory,拼盘,内存,Random Access Memory,read/ write heads,虚拟内存

About the Author:Indika

Indika, BSc.Eng, MSECE Computer Engineering, PhD. Computer Science, is an Assistant Professor and has research interests in the areas of Bioinformatics, Computational Biology, and Biomedical Natural Language Processing.

注释

  1. kumar saurav说

    May 14, 2013 at 12:50 pm

    very nice

    Reply
  2. Prabhat说

    2014年11月5日下午2:20

    出色的好工作

    Reply
  3. 苔丝·泰克(Tess Tekle)说

    March 12, 2020 at 4:48 am

    very detailed and helpful
    谢谢你这样做。

    Reply

发表评论Cancel reply

Your email address will not be published.Required fields are marked*

请求文章

Featured Posts

Difference Between Coronavirus and Cold Symptoms

Difference Between Coronavirus and Cold Symptoms

冠状病毒和SARS之间的差异

冠状病毒和SARS之间的差异

Difference Between Coronavirus and Influenza

Difference Between Coronavirus and Influenza

Difference Between Coronavirus and Covid 19

Difference Between Coronavirus and Covid 19

你可能喜欢

Difference Between Monocentric Dicentric and Polycentric Chromosomes

Difference Between Monocentric Dicentric and Polycentric Chromosomes

What is the Difference Between Ionic and Nonionic Contrast Media

What is the Difference Between Ionic and Nonionic Contrast Media

自恋和精神病之间的差异

自恋和精神病之间的差异

Difference Between Anaphase and Telophase

Difference Between Anaphase and Telophase

生育酚和生育三烯酚有什么区别

生育酚和生育三烯酚有什么区别

Latest Posts

  • What is the Difference Between Aquagenic Urticaria and Aquagenic Pruritus
  • What is the Difference Between Astringent and Toner
  • What is the Difference Between Esophagitis and Barrett’s Esophagus
  • What is the Difference Between Alcohol Ink and Resin Dye
  • What is the Difference Between Hyperparathyroidism and Hyperthyroidism
  • What is the Difference Between Pearlescent and Iridescent
  • 家
  • Vacancies
  • About
  • 请求文章
  • 联系我们

Copyright © 2010-2018Difference Between. All rights reserved.Terms of Use和隐私政策:Legal.