Main memory inside a computer / directly accessed by CPU
eg. RAM + ROM
RAM
Stores OS when running / data currently in use / instructions currently in use
Volatile memory (contents removed when device powered down)
RAM is temporary
What is stored on RAM?
Currently running data
Currently running software
Currently running instructions
Currently running utility software
SRAM vs DRAM
DRAM:consists of many transistors and capacitors; needs to be refreshed constantly; less expensive than SRAM; consumes less power than SRAM
SRAM:uses flip flops to hold each bit of memory; faster data access compared to DRAM; CPU cache makes use of SRAM
ROM
Stores boot instructions / BIOS
Instructions stored on ROM cannot be edited
Is non-volatile memory
ROM vs RAM
ROM:permanent memory; is non-volatile memory; data on ROM cannot be edited
RAM:temporary memory; volatile memory; can be read from or written to; holds part of the OS/applications currently in use
Secondary Storage
Internal memory device not directly accessed by CPU
Non-volatile devices
Used for long term storage of files
eg. HDD/SSD
Solid State (SSD) --- Operation/Description
Uses flash memory
Data is flashed on chips
Uses NAND/NOR technology
Writes (and reads) sequentially
Uses transistors/control gates/floating gates... to control the flow of electrons
It is a type of EEPROM technology
When data is stored the transistor is converted from 1 to 0 / 0 to 1
Magnetic Storage (HDD) --- Operation/Description
It has platters
Platters/Disk divided into tracks
Platter/Disk is spun (disks spin when in operation)
Has read/write head that moves across storage media
Read/Writes data using electromagnets
Uses magnetic fields to control magnetic dots of data
Magnetic field determines binary value
Data is read and written using electromagnets
HDD vs SSD
SSD:Faster transfer speeds; quieter operation; more reliable due to no moving parts; less power required for operation; longevity is questionable due to set read/write cycles
HDD:Cheaper per unit of measurement; more capable read and write operations; not reliable, susceptible to damage if moved during operation