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