UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 1.1 Free with a free account
What an Operating System Does
Introduction to Operating Systems · Chapter 1: Operating System FoundationsSection 1.1 · lesson 1 of 837 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: Software Basics →Next lesson: Software Basics →
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 an OS shares hardware, hides its details, and protects programs.
- Define an operating system and where it sits between hardware and programs
- Explain how an OS manages processor time, memory, storage, and devices
- Describe how abstraction and device drivers hide hardware details from programs
- Distinguish isolation from access control as the two sides of protection
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,017 words). Read along, or search it.
Opening Question
Three Programs Sharing One Laptop
Sam runs a small online bakery from an old laptop. One afternoon, a browser, an order spreadsheet, and a music player are all open, and the laptop starts to crawl. Yet nothing crashes. Three programs that know nothing about each other still share one screen, one keyboard, and one pile of memory. So who, or what, is keeping the peace?
Analogy
A Head Chef Calling Turns
Picture a restaurant kitchen at the dinner rush. The cooks all want the same stove, the same fridge, and the same two sets of tongs. Without a head chef calling out who goes next, you'd get shouting, burned food, and missing ingredients. A good head chef doesn't cook every dish. The chef makes sure everyone gets what they need, in a fair order.
Definition
Software Between Hardware and Programs
Your computer has the same problem. Its physical parts are the hardware: the processor, or CPU, the memory, or RAM, the disk, the screen, and the keyboard. The programs you run are the software. An operating system, or OS, is the special software that sits between the two. It controls the hardware, and it gives every other program a safe, simple way to use it.
Three Big Jobs
Sharing, Hiding Details, and Protection
An OS has three big jobs, and each one answers a different question. How do many programs share one machine? That's managing resources. How do they use it, without learning every gadget? That's hiding the hardware details. And how do they stay out of each other's way? That's protection.
Job One
The OS as Resource Manager
Job one. Anything a program needs in order to run is a resource: processor time, memory, storage space, and devices, like the screen and the printer. There's never enough for everyone to have everything at once, so the OS acts as a resource manager. It hands each resource out, keeps track of who holds it, and takes it back when the program is done.
Worked Example
Handing Out Eight Gigabytes of RAM
Memory is the easiest to picture. Say Sam's laptop has eight gigabytes of RAM. The browser asks for three, and gets them. The spreadsheet asks for two, and gets them. Then a photo editor asks for four. Only three are free, so the OS refuses. Now Sam closes the browser, and its three gigabytes come back. The photo editor asks again, and this time it fits. Two gigabytes stay free. A real OS is far more careful than this, but that's the bookkeeping: hand out, track, take back.
Shared Processor
Short Turns on the CPU
Memory is only one shared resource. The processor is shared too. The OS gives each running program a short turn on the CPU, then switches to the next one. It switches so quickly that all three programs seem to run at once. Chapter 2 shows exactly how.
Job Two
Abstraction Like Driving a Car
Job two is hiding the messy details. Think about driving a car. You turn a wheel and press a pedal. You never think about the fuel injectors, and you can step into a different make of car and still drive it. That simple front is an abstraction: a clean, simple view that hides the complicated parts underneath.
Device Drivers
Saving a File by Name
The OS does this for the whole computer. Sam's order program just says: save this, as order dot t x t. It doesn't know whether the data goes to a spinning disk, a flash drive, or a memory card, or which spot on it is free. The OS works all of that out. The part of the OS that speaks one particular gadget's own language is called a device driver.
Real Example
A New Drive, Same Order Program
Sam saw this happen. He swapped the laptop's old disk for a new flash drive. Ivy, who looks after the computers at a school, warned him the order program might stop working. It didn't. It saved to order dot t x t, exactly as before. Only the OS and its driver knew anything had changed. As Ivy put it: that's what the OS is for. Your programs get to stay ignorant.
Job Three
Isolation and Access Control
Job three is protection. At Ivy's school, a hundred pupils log in to the lab computers every week. Nobody wants one pupil reading another's homework, or one buggy program scribbling over another program's memory, and taking the whole machine down. Protection has two sides. One is isolation: walls between programs, so a crash in one can't take down another. The other is access control: deciding who may do what. You sign in, and the OS checks every request against what you're allowed to do. The most powerful actions, like changing the OS itself, or installing software for everyone, are kept for an administrator.
Quick Check
Two Pupils, One Printer
Quick check. Two pupils at Ivy's school print at the same moment, to the one printer in the lab. One sends a forty-page essay, and the other a one-page form. The OS lines the jobs up, so the pages never get mixed together. Which of the three jobs is the OS doing here? Pause, and decide. Managing resources. The printer is a device, and devices are shared resources. The OS decides who uses it, and when. Protecting programs is the tempting choice, since the pages stay apart. But nobody is reaching for something they aren't allowed to touch. Both pupils may print. They just can't use the one printer at the same instant, so the OS takes turns.
Common Mistake
The Desktop Is Not the OS
One common mistake: thinking the operating system is the desktop you see, with its icons and windows. The desktop is just one program the OS runs for you. The OS itself is mostly invisible, a manager working behind the scenes. And some computers, like the one inside a microwave or a home router, have an operating system and no desktop at all.
Key Takeaways
Manage, Hide, and Protect
To recap. An operating system sits between the hardware and every program. It manages resources: it hands out processor time, memory, storage, and devices, keeps track, and takes them back. It hides the hardware details, so a program saves by name, and a driver does the talking. And it protects programs and people, with walls between programs and a check on every request.
Try It
Who Holds the Most Memory
Here's something to try. Open Activity Monitor on a Mac, or Task Manager on Windows, and look at the memory column. Which program holds the most memory right now? And who decided it could have that much?
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 What an Operating System Does
What does an operating system actually do?
Why is an operating system called a resource manager?
What is abstraction in an operating system?
Is the desktop with icons and windows the operating system?
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 →