Relationship between primary storage, secondary storage, cache, memory, and hard disk

Source: Internet
Author: User

Memory is in different locations in the computer and can be dividedPrimary StorageAndSecondary storage.

 

Primary memory or memory: Inside the host,Memory that directly exchanges information with the CPU. Memory that the CPU can directly access through the address code in the instruction. It is often used to store active memory.ProgramAnd Data

(1) During execution,Data of the program is stored in the primary storage.The content of each storage unit can be randomly accessed through instructions. Such a memory is called random access memory (RAM ). Another type of memory is read-only memory (ROM), which stores programs or data written at one time and can only be read randomly.Ram and Rom share the address space of the primary memory.

(2) The capacity of the primary storage is limited due to structure and price reasons.

(3)The memory runs stably on the computer.Is composed of memory chips, circuit boards, and gold fingers.

Secondary storageOr external storage: hard disk and disk, disc, floppy disk, USB flash disk, etc.

Cache: Buffer register

When the CPU processes a lot of data at the same time, but it is impossible to transmit all data at the same time, the low-priority data is temporarily put into the cache, after processing data with a higher priority, take them out of the cache for processing.

Fast storage: YesIt can be a high-speed cache, which is generally integrated into the CPU or motherboard,Faster than memoryBut the cost is high.

Note:

Five of the computer hardware devices. Memory, controller, memory, input device and output.
The primary storage refers to the memory stick, and the secondary storage generally refers to the hard disk.

The processor needs its own internal memory.RegisterIn the form

Hard compaction includes hard compaction, which is one of

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.