Peripheral Devices, Explained

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

← 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 →

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

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.

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 Peripheral Devices

What is a peripheral device?
A peripheral device is any hardware that connects to a computer's core, the CPU and main memory, to help it reach the outside world, without being part of that core. Keyboards, printers, barcode scanners, external drives and Wi-Fi adapters are peripherals. The word comes from periphery, meaning the edge of something. The CPU and RAM themselves are not peripherals.
Is an internal hard drive a peripheral device?
Yes, an internal hard drive counts as a peripheral, because being inside or outside the case does not decide the question. The test is the device's job: if it exists to move data to or from the CPU and RAM, it is a peripheral. Internal drives, sound chips and Wi-Fi adapters pass that test, just like an external keyboard or printer.
Is a USB flash drive an input or output device?
A USB flash drive is best classed as a storage device rather than input or output. Data flows both into and out of it, which makes either label tempting, but its special purpose is keeping files when the power is off. By comparison, a webcam is input because its data flows into the computer, and a label printer is output because results flow out.
Why do peripheral devices need device drivers?
Device drivers let programs use hardware without knowing each model's details. A program asks the operating system for a general action, such as print this, through a system call. The OS passes the request to the driver for that exact device, and the driver talks to the hardware. A brand-new scanner model then needs a new driver, not new versions of every program.

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 →