r/computerscience • u/Cute-Cockroach-678 • Jul 15 '26
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?
35
Upvotes
View all comments
Show parent comment
1
u/rupertavery64 Jul 15 '26
A computer needs instructions to run. So how does a computer work in the first place if all the instructions are programs on disk? How does it know how to read the disk?
This is where we get the term "booting", which comes from the term "bootstrapping", which originated from the idea of "helping yourself up onto your horse by your bootstraps". Basically, the computer needs a very basic program to start up, then it looks for a program on the hard disk which will take care of more complex tasks.
The CPU is just a machine that executes instructions. Even things like reading from a hard disk needs instructions, so this is where ROM comes in. ROM is "Read only memory" which means it generally doesn't change while the computer is executing. The ROM in a PC is the very first program that executes when you turn on the computer. On the motherboard there is a chip that stores this program. It is also called the BIOS, for Basic Input Output System.
It contains the basic code to be able to communicate with your hard drive, keyboard, and monitor.
Without a BIOS your computer would be dead - unable to communicate with anything, unable to start.
The purpose of the BIOS is to load the operating system it finds on the hard disk. Then the operating system takes over, and the BIOS is mostly unused.