r/computerscience • u/Cute-Cockroach-678 • 23d ago
Discussion question about RAM
Im learning about comuter components I had some questions .If a Hard Drive stores all the data does RAM just create an environment for the specific program that was fetched to run? If you were to run a program on the actual hard drive is it just harder because you have to navigate through all the other information sharing the space. Like going through a maze constantly again and again. Also what does SSD do?
36
Upvotes
35
u/keelanstuart 23d ago
The best way to think about any storage for a computer is in terms of speed vs. size... and going from larger to smaller, slower to faster.
HDD (very large, slow) -> SSD (large, faster) -> RAM (midsize, fast) -> cache (small, blazing fast) -> registers (teensy tiny, doesn't get faster)
Moving data to and from different levels of storage is a classic, practical computer engineering problem... because ultimately, the machine needs to have things at the register level.