Magnetic core memory, used primarily in early computers, stores data using tiny magnetic rings called magnetic cores. Each core represents one bit of data, with its magnetic orientation indicating whether the bit is a 0 or a 1.
### Storage:
1. **Magnetic Cores**: Each core is made of a ferromagnetic material and is threaded by wires. The state of each core (magnetized in one direction for a 1, or the opposite direction for a 0) is what stores the data.
2. **Wiring**: A grid of horizontal and vertical wires is used, with each core located at the intersection of a specific wire pair.
3. **Writing Data**: To write data to a core, a current is passed through the appropriate wires, creating a magnetic field that flips the core's orientation, thereby storing a 1 or a 0.
### Retrieval:
1. **Reading Data**: To read the data, a small current is sent through the wires connected to the core in question. If the core is magnetized in one direction, it will induce a voltage in the sensing wire; if it's in the opposite direction, it won't.
2. **Sensing**: The induced voltage indicates whether the core is a 1 or a 0, allowing the system to retrieve the stored data.
### Advantages and Disadvantages:
- **Advantages**: Non-volatile (retains data when powered off), durable, and relatively fast.
- **Disadvantages**: Bulky and complex compared to modern semiconductor memory technologies.
Magnetic core memory was widely used until the advent of more compact and faster technologies, such as dynamic RAM (DRAM).