Home  >  Article  >  What memory is used to store the currently running application?

What memory is used to store the currently running application?

青灯夜游
青灯夜游Original
2020-12-09 17:23:1957420browse

The memory used to store the currently running application is "memory". Memory, also called main memory, is an internal memory that exchanges data directly with the CPU; it can be read and written at any time (except when refreshing), and it is very fast. It is usually used as a temporary data storage medium for the operating system or other running programs.

What memory is used to store the currently running application?

#The operating environment of this article: windows10 system, thinkpad t480 computer.

Memory (Memory) is a memory device in a computer system, used to store programs and data. All information in the computer, including input raw data, computer programs, intermediate results and final results are stored in memory. It stores and retrieves information based on locations specified by the controller.

What memory is used to store the currently running application?

Memory can be divided into two categories:

  • One type is located on the host computer The internal memory (referred to as memory), also called main memory, is used to store the currently running program and the data used by the program. It is a temporary memory;

    The main memory is the internal device that directly exchanges data with the CPU. memory. It can be read and written at any time (except when refreshing), is very fast, and is often used as a temporary data storage medium for the operating system or other running programs.

  • The other type is memory belonging to computer external devices, called external memory (referred to as external memory), also called auxiliary memory. External memory is a permanent memory that stores data and programs that are not used temporarily.

Memory Storage

Memory is an important component of the computer, also known as internal memory and main memory. It is used to temporarily store the CPU Computational data in the computer, as well as data exchanged with external storage such as hard disks. It is the bridge between external memory and the CPU. All programs in the computer run in the memory. The performance of the memory affects the overall performance of the computer. As long as the computer starts running, the operating system will transfer the data that needs to be calculated from the memory to the CPU for calculation. When the calculation is completed, the CPU will transmit the results.

The operation of memory determines the overall running speed of the computer.

The programs we usually use, such as: Windows operating system, typing software, game software, etc. They are generally installed on external storage such as hard disks, but their functions cannot be used only because they must be transferred into memory to run in order to truly use their functions.

When we usually enter a piece of text or play a game, we actually do it in memory. Just like in a study room, the bookshelves and bookcases where books are stored are equivalent to the external storage of the computer, and the desk where we work is equivalent to the memory.

Usually, we store large amounts of data that need to be saved permanently on external memory, and put some temporary or small amounts of data and programs on memory. Of course, the quality of the memory will directly affect the running speed of the computer.

Extended knowledge: There are many types of internal memory, mainly divided into RAM and ROM

1. Random access memory

Random access memory , RAM), also known as "random access memory", is an internal memory that directly exchanges data with the CPU, also called main memory (memory). It can be read and written at any time, is very fast, and is often used as a temporary data storage medium for the operating system or other running programs.

Random memory features:

  • Random access. The so-called "random access" means that when data in the memory is read or written, the time required has nothing to do with the location of the information or the location where it is written. In contrast, when reading or writing information in a Sequential Access storage device, the time and location required are related. It is mainly used to store the operating system, various applications, data, etc.

  • Volatile. RAM cannot retain data when power is turned off. If data needs to be saved, they must be written to SRAM on a long-term storage device (such as a hard disk). Compared with RAM and ROM, the biggest difference between the two is that the data stored in RAM will disappear automatically after the power is turned off, while ROM will not disappear automatically and can be saved for a long time without power.

  • Sensitive to static electricity. Like other delicate integrated circuits, random access memory is very sensitive to environmental electrostatic charges. Static electricity can interfere with the charge of the capacitors in the memory, causing data loss or even burning out the circuit. Therefore, before touching the random access memory, you should first touch the metal ground with your hand.

  • Access speed. Modern random access memory has the fastest write and read speeds of almost any access device, and the access latency of laptop memory is negligible compared to other storage devices that involve mechanical operations.

  • Needs refresh (regeneration). Modern random access memory relies on capacitors to store data. A fully charged capacitor represents a 1 (binary), and an uncharged capacitor represents a 0. Since capacitors have leakage to some extent, data will gradually be lost over time if no special treatment is taken. Refreshing means periodically reading the status of the capacitor and then recharging the capacitor according to its original status to make up for the lost charge. The need to refresh explains exactly the volatile nature of random access memory.

2. Read-only memory

Read-only memory (English: Read-Only Memory, abbreviation: ROM). The data stored in ROM is generally written in advance before being installed into the whole machine. It can only be read out during the operation of the whole machine, and cannot be rewritten quickly and conveniently like random access memory. The data stored in ROM is stable and will not change after power failure; its structure is relatively simple and easy to read, so it is often used to store various fixed programs and data.

Characteristics of read-only memory:

  • The characteristic of read-only memory is that it can only read information and cannot write information at will. A basic input is solidified in the ROM on the motherboard. /output system, called BIOS (Basic Input Output System). Its main function is to complete the power-on self-test of the system, initialization of each functional module in the system, basic input/output driver of the system and boot operating system.

Related recommendations: "Programming Learning Course"

The above is the detailed content of What memory is used to store the currently running application?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn