What an Operating System Does

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

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 →

Earn 3 college credits for Introduction to Operating SystemsRecommended for credit by NCCRS · Computer Science 354 · self-paced · one payment, lifetime access

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.

Compare: Linux vs Operating Systems

Why take it here

Why students take Introduction to Operating Systems with UPI Study

What happens under every app you runIntroduction to Operating Systems explains the software that runs a computer: processes and scheduling, threads and synchronization, deadlock, memory and paging, devices and storage, file systems, networking, security and virtualization. It suits computer science and information technology degrees.
Credit at a fraction of the priceThe same 3 credits can cost $750 or more at a US college. Here it is one payment, self-paced, with lifetime access.
Finish your degree soonerTransfer credits reduce the courses you still owe, so you can graduate earlier or lighten a heavy semester.
Strengthen an applicationA completed college-level course on an official transcript shows admissions and scholarship committees you can do the work.
Study on your own scheduleNo start dates, no deadlines. Watch the lessons, practice, and take the final when you are ready.
130,000+students helped with college creditsACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

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.

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?
An operating system controls the computer's hardware and gives every other program a safe, simple way to use it. Its work falls into three jobs: managing shared resources such as processor time, memory, storage, and devices; hiding hardware details behind simple requests like saving a file by name; and protecting programs and users from each other through isolation and access control.
Why is an operating system called a resource manager?
An operating system is called a resource manager because it hands out everything programs need, keeps track of who holds it, and takes it back when a program is done. For example, in a simplified picture of a laptop with 8 GB of RAM, if a browser holds 3 GB and a spreadsheet 2 GB, a request for 4 GB more is refused until something closes and frees memory.
What is abstraction in an operating system?
Abstraction is a clean, simple view that hides the complicated parts underneath, the way a steering wheel and pedals hide a car's fuel injectors. A program simply asks to save a file by name, and the operating system works out where the bytes go, whether the storage is a spinning disk, a flash drive, or a memory card. A device driver speaks each gadget's own language.
Is the desktop with icons and windows the operating system?
No, the desktop is just one program that the operating system runs for you. The operating system itself works mostly out of sight, managing hardware and programs behind the scenes. Some computers, such as the controllers inside microwaves and home routers, run an operating system with no desktop at all, so a missing desktop does not mean a missing operating system.

About the Introduction to Operating Systems course

How many college credits is Introduction to Operating Systems?
Introduction to Operating Systems (Computer Science 354) carries a NCCRS credit recommendation for 3 semester credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
How much does Introduction to Operating Systems cost and what is included?
$250, paid once, with lifetime access: all 83 video lessons, a practice quiz after each, the graded work and final exam, and an official transcript when you finish. Students who want several courses choose UPI Study PRO instead.
Which universities accept UPI Study credits?
UPI Study has signed partner agreements with universities such as Thomas Edison State University, University of the People and Charter Oak State College, and works with universities such as Penn State, SNHU and SUNY. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities. Use "Find my college" on this page to check yours.
How long does Introduction to Operating Systems take?
It is self-paced with no deadlines. The 83 lessons total about 10 hours of video; most students add reading and practice time and finish in a few weeks to a few months, on their own schedule.
How are the exams done?
Quizzes and assignments are online in the course. The final exam is taken online with proctoring; a person on the UPI Study team checks assignments, usually within two days.
How do my credits reach my college?
When the course shows 100% complete, request the official transcript from your dashboard. It is sent to the college you name, and you can send it to more than one. Check your college first with "Find my college" on this page, or ask Athena.

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

Introduction to Operating Systems
3 credits · NCCRS
Enroll →