Memory Management and Memory Management Software

Source: Internet
Author: User

Memory Management and Memory Management Software

Memory management refers to the technology used to allocate and use computer memory resources during software running. Its primary goal is to efficiently and quickly allocate and release and recycle memory resources when appropriate.

A running program, such as a web browser in a personal computer or Turing machine, converts data into a process between the real world and computer memory, then store the data in the computer memory (in computer science, a program is a collection of commands and a process is a program running on the computer ). Memory can be physically organized in many ways, such as tapes, disks, or microchips with small array capacity. Since the 1950 s, computers have become more complex and have been connected to many types of memory. Memory management tasks become complex, and even multiple processes must be run at the same time on the same machine.

In the memory, a program (operating system) continuously tracks the object location in each data block and moves the data on the object to improve its performance and ensure reliability, for each user-level program, the operating system allocates a virtual memory space. When the process starts, no data needs to be moved to the physical device, the data is stored in the virtual memory of the disk, and you do not need to configure the primary storage space for the process. When users need to use the data, they can freely load the data to the primary storage.

It can be imagined that a large program becomes a process when it runs, and most of the memory space is saved to the virtual memory address on the disk, the required parts are loaded into the memory to provide services.

Primary storage usage

A program structure consists of the following two parts:

  • "This section", that is, command storage, provides CPU usage and Operation
  • "Data block" refers to the data set inside the storage program, such as constant strings, text messages inside the GUI interface, or message data placed during program design, data can be added as input when the program is running, or removed from the program running process.

When a program runs, the operating system maps the data blocks of the program and the blocks in this article to the virtual memory space, and then runs the program commands in the memory, when a program is running, it must store temporary data or, more importantly, it will call some functions or routines and store the status of the current function, the best data structure method is to store data in the stack mode. When we complete this function, the data will be taken out in the pop mode of the stack, the stack will grow dynamically within the life cycle of the function. The operating system provides a distinction between the block and the data block, while the stack block is at the top of a process, this method is called segment structure or segment ".

 

Our public account

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.