r/computerscience • u/TranslatorParty4662 • Dec 30 '23
WTF does ram actually do?
I know that RAM stores data for quick use for the CPU. But I want to know more, what does RAM actually do when its storing data. Like when I'm playing a game is RAM responsible for keeping track of how many bullets I shoot. If there are any game developers reading this please let me know. What kind of information does RAM store and how and when does it use it. The main thing I use my pc for is gaming and recording/video editing so how would RAM play a role in those things?
261
Upvotes
View all comments
1
u/Crypt_hash Dec 31 '23
I would explain this that even a person with very less tech knowledge will be able to understand this
Imagine preparing a vegetable salad with limited kitchen experience. You'd gather your tools: a chopping board, a bowl, and a knife, and get your vegetables from the fridge. Picture this: you start by taking a single tomato out, slicing it up on the board, and tossing the pieces into the bowl. Then you repeat this—returning to the fridge for each new tomato. It's a bit time-consuming, right? Now, think about how much quicker it would be if you took out a handful of tomatoes at once, placing them on a tray next to your chopping board. This way, you'd streamline the process, cutting down the back-and-forth, and making your salad prep much more efficient.
In this assumption the cutting board will be your processor, the tomato tray your ram, fridge your external storage device, and bowl your output.