UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 5.1 Free with a free account
Peripheral Devices
Introduction to Operating Systems · Chapter 5: Peripheral Devices and I/O SystemsSection 5.1 · lesson 36 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: Parts of an Information System →← Memory Allocation and Garbage CollectionNext lesson: Parts of an Information System →
A free account plays all of Chapter 1 and 3 more lessons of Introduction to Operating Systems. Create a free account →
In this lesson
What counts as a peripheral and how the OS manages them.
- Define a peripheral device in relation to the CPU and RAM
- Sort peripherals into input, output, storage and communication families
- Apply the job-based test to devices inside and outside the case
- Explain why the operating system and device drivers stand between programs and hardware
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 (960 words). Read along, or search it.
Opening Scene
A Brain With No Eyes or Hands
Sam, who runs a small online bakery, opens up the shop's old laptop. The parts that actually think are few: a processor, some memory, and a handful of chips. Everything else is plugged in from outside: the scanner that beeps at a flour bag, the receipt printer, and the drive that holds last night's backup. Without those extras, the laptop would be a clever brain with no eyes, no hands, and no voice. So what counts as a peripheral? And who keeps them all in order?
Definition
The Core and Its Periphery
Start with the core. The central processing unit runs instructions. Main memory, the RAM, holds what the processor is working on right now. Together, they are the core of a computer. A peripheral device is any piece of hardware that connects to that core, to help it reach the outside world, but is not part of the core itself. The word comes from periphery: the edge of something.
Analogy
A Chef and the Kitchen Tools
Think of a chef in a kitchen. The chef's skill is the CPU, and the counter space is the RAM. The delivery door, the fridge, the oven, and the serving window are all useful. Yet none of them cooks. They bring things in, store things, heat things, and send things out. Peripherals do the same jobs for a computer.
Handy Test
Judge by Job, Not Location
Some peripherals sit outside the case, like a keyboard or a printer. Others live inside it, like the drive that stores your files, or the sound chip. Where the box ends doesn't decide anything. What decides is the job: the device moves data between the core and the world. So here's a handy test. Does it exist only to move data to or from the CPU and RAM? Then it's a peripheral. The CPU and RAM themselves are not.
Four Families
Input, Output, Storage, Communication
Peripherals come in four families, sorted by their job. Sam's shop shows all four in one afternoon. Input devices carry data in. The barcode scanner reads the stripes on a flour bag, and tells the laptop which product it is. Output devices carry results out. The screen shows the order list, and the receipt printer puts the total on paper. Storage devices keep data when the power is off. RAM forgets everything at shutdown, so Sam backs up the day's orders to an external drive. And communication devices connect the computer to other computers. The Wi-Fi adapter lets the laptop reach the internet, to check a card payment.
Edge Cases
Devices That Straddle Two Families
Some devices straddle a line. A touchscreen shows the picture, which is output, and feels your finger, which is input. The Wi-Fi adapter both sends and receives. Lesson 5.4 gives a tidier way to sort these cases.
Quick Check
Picking the Input Device
Quick check. Ivy, who looks after the computers at a school, plugs three new gadgets into a lab computer. A label printer, a USB memory stick, and a webcam for video calls. Which one is an input device? Pause, and decide. The webcam. It carries pictures from the room into the computer, so its data flows in. The label printer carries results out onto paper, so it's output. The stick is the tempting one, because data goes both in and out of it. But its special purpose is keeping files when the power is off. That makes it storage.
The Problem
No Program Can Know Every Printer
Now, who keeps all these devices in order? Imagine every program had to know exactly how to drive every printer ever made. Sam's order software would need instructions for dozens of brands, and it would break whenever a new one appeared. Worse, if two programs wrote to the printer at the same moment, their pages would come out mixed together.
OS and Drivers
From System Call to Device Driver
So the operating system sits between programs and hardware. It's the resource manager you met in lesson 1.1. The program simply asks: print this, through a system call. The OS passes the request to a small piece of software that knows that exact device: a device driver. And the driver speaks to the hardware. Programs stay simple, and the devices stay shared and safe. The OS lines the requests up and hands them over one at a time.
Real Case
A Printer Out of Paper
One morning, the receipt printer ran out of paper in the middle of a rush. Sam's order program froze while it waited. Ivy was visiting, and laughed kindly. The program is fine, she said. It handed the receipt to the printer, and the printer said: no paper. Peripherals are slower and fussier than the CPU, so the system has to wait for them. And they aren't dumb. A printer has its own small chips that turn a page description into dots. It's still a peripheral, because its job is to serve the core.
Quick Check
A Driver for a New Scanner
One more. Ivy's school buys a brand-new model of document scanner, released last month. The lab's programs were written years ago, long before it existed. What must be added, so those old programs can scan with it? Pause, and decide. A driver. The old programs keep asking the same thing: scan this page. The operating system hands that request to the new driver, which knows this exact model. New versions of every program is the tempting pick, but that's the mess an operating system exists to avoid. And a faster processor can't teach anything how to talk to a device it has never met.
Key Takeaways
Peripherals Serve the Core
To recap. A peripheral is hardware that helps the core, the CPU and RAM, reach the outside world. Peripherals come in four families: input, output, storage, and communication. Judge a device by its job, not by whether it sits inside the case. And the operating system, with a driver for each device, stands between programs and the hardware.
Try It
List and Sort Your Own Devices
Try this. Look around your desk, and list every device plugged into your computer, or built into it. Next to each one, write its family. Which ones were hard to place?
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 Peripheral Devices
What is a peripheral device?
Is an internal hard drive a peripheral device?
Is a USB flash drive an input or output device?
Why do peripheral devices need device drivers?
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 →