Featured
Featured
How does Computer Memory Work?
Although memory is technically any form of electronic storage, it is used most often to identify fast, temporary forms of storage. If your computer's CPU had to constantly access the hard drive to retrieve every piece of data it needs, it would operate very slowly. When the information is kept in memory, the CPU can access it much more quickly. Most forms of memory are intended to store data temporarily.
The CPU accesses memory according to a distinct hierarchy. Whether it comes from permanent storage (the hard drive) or input (the keyboard), most data goes in random access memory (RAM) first. The CPU then stores pieces of data it will need to access, often in a cache, and maintains certain special instructions in the register. We'll talk about cache and registers later.
All of the components in your computer, such as the CPU, the hard drive and the operating system, work together as a team, and memory is one of the most essential parts of this team. From the moment you turn your computer on until the time you shut it down, your CPU is constantly using memory. Let's take a look at a typical scenario:
You turn the computer on.
The computer loads data from read-only memory (ROM) and performs a power-on self-test (POST) to make sure all the major components are functioning properly. As part of this test, the memory controller checks all of the memory addresses with a quick read/write operation to ensure that there are no errors in the memory chips. Read/write means that data is written to a bit and then read from that bit.
The computer loads the basic input/output system (BIOS) from ROM. The BIOS provides the most basic information about storage devices, boot sequence, security, Plug and Play (auto device recognition) capability and a few other items.
The computer loads the operating system (OS) from the hard drive into the system's RAM. Generally, the critical parts of the operating system are maintained in RAM as long as the computer is on. This allows the CPU to have immediate access to the operating system, which enhances the performance and functionality of the overall system.
When you open an application, it is loaded into RAM. To conserve RAM usage, many applications load only the essential parts of the program initially and then load other pieces as needed.
After an application is loaded, any files that are opened for use in that application are loaded into RAM.
When you save a file and close the application, the file is written to the specified storage device, and then it and the application are purged from RAM.
In the list above, every time something is loaded or opened, it is placed into RAM. This simply means that it has been put in the computer's temporary storage area so that the CPU can access that information more easily. The CPU requests the data it needs from RAM, processes it and writes new data back to RAM in a continuous cycle. In most computers, this shuffling of data between the CPU and RAM happens millions of times every second. When an application is closed, it and any accompanying files are usually purged (deleted) from RAM to make room for new data. If the changed files are not saved to a permanent storage device before being purged, they are lost.
One common question about desktop computers that comes up all the time is, "Why does a computer need so many memory systems?"
52
views
1
comment
How do Soap Bottle Pumps Work
How do Soap Bottle Pumps Work? Inside the Animation of a Soap Pump Dispenser
24
views
Light Switches Explained
3-Way Light Switches Explained!! Engineering Inside Light Switches and How They Work
29
views
Inside the Engineering of Solid-State Drive SSD
How does this SSD store 8TB of Data Inside the Engineering of Solid-State Drive Architecture
24
views
How Does a Computer Mouse Work
How does a Mouse know when you move it? How Does a Computer Mouse Work?
27
views
How do SSDs Store Data
How do SSDs Work How to fit 3 WEEKS of TV in a microchip the size of a dime!! Explained in 3min.
20
views
The Intricate Engineering Inside Foldable Smartphones
The Intricate Engineering Inside Foldable Smartphones
22
views
How Do Trees Extract CO2
How Do Trees Extract CO2?
Trees draw carbon dioxide from the atmosphere through a process called photosynthesis. Plants use photosynthesis to produce various carbon-based sugars necessary for tree functioning and to make wood for growth. Every part of a tree stores carbon, from the trunks, branches, leaves, and roots.
24
views
What are PCBs and How it Work
What are PCBs and How it Work?
PCB is an acronym for printed circuit board. It is a board that has lines and pads that connect various points together. In the picture above, there are traces that electrically connect the various connectors and components to each other. A PCB allows signals and power to be routed between physical devices.
24
views
How does a Camera Work?
With a digital camera, the light entering through the lens strikes an image sensor. The signal output by the image sensor is processed within the camera to create image data, which is stored on the memory card. The image can be simultaneously viewed on the picture display.
37
views
How do Speakers Work?
How do speakers work to create sound? To produce sound, speakers function by converting the gathered electrical energy into mechanical energy. As the air is compressed by mechanical energy, the motion is converted into sound pressure level (SPL) or sound energy.
39
views
How Do Touchscreens Work?
Touchscreens work using electricity. The screen is made of glass, an insulating material – it cannot carry an electric current. The surface of the screen is therefore coated with a thin layer of an electrically conducting material such as indium tin oxide. This is chosen because it is transparent.
33
views
How does Multitouch Work?
How does Multitouch Work?
touchscreen, multitouch, smartphone, sensing, touch, device, electronics, cellphone, tech, technology, hack, how it works, how it's made, capacitive touchscreen, multi touch technology, what is multi touch, how multitouch works, what is multitouch technology, what is multitouch, branch education,what is multi touch display, what is multi touch laptop, what is multi touch issue, what is multi touch-enabled edge-to-edge glass, what is multi touch screen, 10 point multitouch
29
views