Secondary memory is what we generally refer to when as we ask “how much space does your computer have left?”. In many cases, secondary memory is your hard drive. There can be other types of secondary memory as well which are less common such as USB drives, CD’s or external Hard Drives/SSD’s. From here on we can think interchangeably of secondary memory as your computer’s hard drive.
Computer Lifecycle
- Your computer is off and you press the “on” button.
- The ROM will hold instructions that detail where to find the operating system in secondary memory.
- Your RAM is empty at this point.
- Instructions are copied and transferred from secondary memory to primary memory (RAM)
- RAM will not hold your whole operating system, but it will be using a good amount of RAM available for necessary tasks.
- There will now be some RAM available for your programs to run (browsers, VSCode, Spotify, etc.)
- You click on Spotify to get some tunes going before a long revision sesh.
- Spotify instructions will be loaded on to your RAM from secondary memory.
- There will be less RAM available for other programs.
- The CPU can’t talk to secondary memory, only to primary memory. Anything you need anything new, we’ll have to fetch it.
- You choose a new song which is has not been downloaded to your computer beforehand.
- The data is fetched from the internet.
- The song data is temporarily stored in your RAM.
- There is less room in your RAM for other programs.
- Your study sesh is not going to start and you open 19 tabs on Chrome. You also open a few PDF’s and maybe WhatsApp Desktop messenger.
- Your RAM is now close to being full.
- Any programs that you open up from here on out will need to use RAM. But there isn’t a lot of it!
- Your computer tries to figure out which programs need the most memory. Maybe which are being used the most by you.
- RAM is given priority to the most used programs right now, perhaps.
- In the background, songs are still being downloaded on to RAM, and disposed when they are done.
- Messages are coming in and network calls are being performed, these also need RAM. Ah!
- Your computer starts giving you the spinning wheel of death, why?!
- Your computer now has to decide which data to store in RAM and which to switch over to secondary memory.
- Any time that you need to use a program that has data stored in secondary memory, your computer spinsssss.
- This is because it takes a long time to get things from secondary memory, its faaaaaaar away.
- As you open up more tabs, some of those are put into secondary memory if they’re not being used.
- Priority continues to be given to certain programs.
- You finish your homework and save the pdf to your hard drive.
- Some, or all, of the pdf data will be saved to your hard drive. This doesn’t happen immediately.
- Your Operating System will schedule this data to be saved at some point.
- Eventually, your data will be saved in your hard drive.