UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 4.2 Free with a free account
Storage Technologies
Introduction to Operating Systems · Chapter 4: Memory ManagementSection 4.2 · lesson 26 of 838 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Introduction to Operating Systems.
Lesson complete
Earn the 3 college credits for Introduction to Operating Systems
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Units of Storage →← How Computer Memory WorksNext lesson: Units of Storage →
A free account plays all of Chapter 1 and 3 more lessons of Introduction to Operating Systems. Create a free account →
In this lesson
How volatile memory and non-volatile storage physically hold bits.
- Distinguish volatile memory from non-volatile storage
- Encode characters as bits with ASCII and count bit patterns as powers of two
- Compare magnetic, solid state and optical storage
- Contrast direct access with sequential access
Free study notes
Get this lesson's notes by email
The key points and 4 practice questions with answers, in your inbox. One email, free.
One email. Unsubscribe in one click.
Transcript
Everything said in the video, section by section (1,031 words). Read along, or search it.
Opening Scene
Saved Files Survive a Power Cut
Sam, who runs a small online bakery, is typing a big order when the power goes out. The old laptop's worn-out battery gives up at once. When it starts again, every saved file is still there. But the order Sam was typing is gone. Why did one survive, and not the other?
Analogy
Whiteboard Versus Notebook
Think about two kinds of paper. A whiteboard is perfect for working out a problem, and wiping it takes one swipe. A notebook is slower to write in, but your words are still there next year. Computers use both kinds. Some memory forgets the moment the power goes out. Some remembers for years.
Key Distinction
Volatile Memory and Non-Volatile Storage
Memory that needs power to keep its contents is volatile. Cut the power, and the data is gone. RAM and cache are volatile. Non-volatile memory keeps its contents with no power at all: drives, flash memory, and discs. That's why saving matters. A document you're typing sits in RAM, on the whiteboard. Saving copies it down to the drive, where it survives a crash. One common mix-up: memory and storage. In everyday talk they're the same word. In a computer, RAM is the volatile workspace, and the drive is non-volatile storage. They're separate parts, with separate jobs.
Bits
Anything With Two Stable States
Underneath, all storage does the same humble thing: it holds bits. A bit is a single yes or no, written as 0 or 1. Anything that can reliably sit in one of two states can hold a bit. A light switch, on or off. A spot magnetized one way, or the other. A tiny cell, with electric charge, or without.
Worked Example
Storing Hi! in ASCII
To store a letter, a computer first agrees on a number for it. Text uses a standard table of numbers, called ASCII. Capital H is number 72. In bits, that's 0 1 0 0 1 0 0 0: a 64, plus an 8. Small i is 105. And the exclamation mark is 33. Each character takes 8 bits. A group of 8 bits is called a byte, and lesson 4.3 measures with it. So the note Hi! takes 3 bytes, which is 24 bits.
Key Rule
Each Extra Bit Doubles the Patterns
Here's a key fact. One bit can show 2 patterns: 0, or 1. Two bits show 4: 00, 01, 10, and 11. Every old pattern can now end in a 0 or a 1, so each extra bit doubles the count. Three bits give 8 patterns, four give 16, and five give 32. Eight bits give 256: enough for letters, digits and symbols. Photos, music and programs are stored the same way, just with far more bits.
Three Families
Magnetic, Solid State and Optical
Real devices use physics to keep each bit in one of two states. There are three big families. Magnetic storage, like hard disks and tape: tiny regions are magnetized one way or the other, and a read head senses which. The surface has to move under the head, so reaching data takes time. Solid state storage, like SSDs, USB sticks and memory cards: chips of cells that hold an electric charge, or don't. There are no moving parts. RAM is built from chips too. But each bit of ordinary RAM is a tiny charge that leaks away, so the computer refreshes it many times a second. Optical storage, like CDs, DVDs and Blu-ray: a disc covered in tiny marks. A laser shines on it, and the light comes back differently from a mark than from the flat surface. Devices come back in chapter 5: disks in 5.9, optical discs in 5.10, and flash in 5.11.
Access Methods
Direct Versus Sequential Access
Another difference is how you reach the data. On a disk, a flash chip or a disc, you can jump straight to any spot. That's direct access. On tape, you wind through everything in order. That's called sequential access. It's slow for opening one file. But it's fine for backups, which are written and read in order anyway.
Techniques
Layering, Redundancy, Compression, Checking
Storing bits is only half the job. Systems also use a few techniques. Layering puts fast, small memory in front of big, slow memory, as lesson 4.1 showed. Backups and redundancy keep extra copies, for example with RAID, so one failed device doesn't lose everything. A file system turns raw bits into named files and folders. And compression stores the same data in fewer bits, while error checking adds a few bits to catch damage.
Quick Check
Bits Needed for 50 Colors
Quick check. A drawing app gives each pixel one of 50 colors, and stores the choice as a pattern of bits. What's the fewest bits per pixel that can tell all 50 colors apart? Five bits, six bits, or eight bits? Pause, and decide. Six bits. Five bits give only 32 patterns, which is too few for 50 colors. One more bit doubles that to 64, enough for all 50, with 14 to spare. Eight bits would work too, with 256 patterns. But it isn't the fewest.
Quick Check
Flash for a Thermostat Schedule
One more. A thermostat on a school wall must remember its weekly heating schedule, even through a power cut. It's small and cheap, and it has no room for anything fragile. Which should hold the schedule: a small hard disk, ordinary RAM, or flash memory? Pause, and decide. Flash memory. The schedule must survive a power cut, so it needs non-volatile storage. That rules out ordinary RAM. A hard disk is non-volatile, but it spins, with moving parts: too big and too fragile for a thermostat. Flash keeps its charge with no power and no moving parts. That's why so many small gadgets use it.
Real Case
Autosave Copies the Whiteboard
Back to Sam's power cut. The order being typed lived only in RAM, on the whiteboard. When the power went, so did the order. The saved files were on the drive, in the notebook, so they survived. Ivy, who looks after the computers at a school, had simple advice: turn on autosave. It just copies the whiteboard to the notebook more often.
Key Takeaways
Power, Bits and Physical Media
To recap. Volatile memory, like RAM and cache, needs power. Non-volatile storage, like drives, flash and discs, keeps data without it. Everything is stored as bits. Eight bits make a byte, and each extra bit doubles the patterns. Magnetic, solid state and optical storage hold bits in different physical ways. And tape is read in order, while disks, flash and discs can jump to any spot.
About Introduction to Operating Systems at UPI Study
Introduction to Operating Systems (Computer Science 354) is a self-paced online course of 83 video lessons in 10 chapters, from what an operating system does and process scheduling to concurrency, memory, devices, file systems, networks, the internet, security and virtual machines. It carries a NCCRS credit recommendation for 3 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus All Computer Science courses Every course with PRO →
Compare: Linux vs Operating Systems
Why take it here
Why students take Introduction to Operating Systems with UPI Study
Where the credit goes
Universities that work with NCCRS
Introduction to Operating Systems carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Storage Technologies
What is the difference between volatile and non-volatile memory?
How many bits do you need to represent 50 different values?
How is a letter stored in binary?
How do magnetic, solid state and optical storage hold bits differently?
About the Introduction to Operating Systems course
How many college credits is Introduction to Operating Systems?
How much does Introduction to Operating Systems cost and what is included?
Which universities accept UPI Study credits?
How long does Introduction to Operating Systems take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 3 credits in Introduction to Operating Systems.
83 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
Updated
3 credits · NCCRSEnroll →