Software Basics, Explained | Introduction to Operating Systems

UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 1.2 Free with a free account

Software Basics

Introduction to Operating Systems · Chapter 1: Operating System FoundationsSection 1.2 · lesson 2 of 838 min · free with a free account

← What an Operating System DoesNext lesson: Kinds of Operating Systems →

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

Programs, data, system software, firmware, drivers, and how code runs.

  • Distinguish a program from the data it works on
  • Classify software as application software or system software by whom it serves
  • Explain what firmware and device drivers do and where each one lives
  • Compare how a compiler and an interpreter turn source code into machine code

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,091 words). Read along, or search it.

Opening Question

Same Laptop, New Instructions

Sam's laptop is the same metal and plastic it was last year. Yet today it runs his bakery's order system, tomorrow it plays a video, and next week it might do something nobody has invented yet. What changed? Not the parts you can touch. Only the instructions it was given. Those instructions are software, and they turn a box of electronics into something useful.

Analogy

Software as a Recipe Card

Think of a recipe card for banana muffins. The card isn't food. It's a list of steps that, when someone follows them, produce food. Software is the computer's recipe card: a set of instructions that tells the hardware what to do. The cook who follows the steps is the processor. One complete set of instructions for one job is called a program. And data is the information a program works on, its ingredients, like Sam's list of orders.

Example

A One-Line Program Run by Bash

A program doesn't have to look mysterious. It can be a plain text file. Here's a file named hello dot s h, holding a single line: echo, Welcome to the bakery shop. Bash, a program that reads and carries out commands, opens the file and follows it, and the words appear on the screen. So two pieces of software are at work: the tiny program in the file, and Bash, the bigger program that knows how to run it.

Two Families

Application Software and System Software

Software splits into two big families, according to who it serves. Application software, or apps, helps a person do something they care about: write a letter, edit photos, track orders. System software serves the computer itself. It runs the hardware, and gives apps a place to run. The operating system is the most important system software. It comes with helper tools, like file managers, disk checkers, and security programs.

Rule of Thumb

Who Does It Mostly Serve

A handy test: if you open it on purpose to get something done, it's probably an app. If it keeps the machine running, it's probably system software. The line isn't always sharp. A file manager is system software you use directly, and a browser is an app that behaves almost like a small operating system. So ask one question: who does this mostly serve? You'll be right nearly every time.

Quick Check

Picking the Application on School Laptops

Quick check. Ivy's school laptops come with three new programs: a disk-cleanup utility, a video-call program, and a driver for the Wi-Fi card. Which one is application software? Pause, and decide. The video-call program. A teacher opens it on purpose, to talk to a class. It serves the person. The cleanup utility is the tempting one, since people open it too. But its whole job is keeping the disk in shape, so it serves the machine. And the driver serves the hardware. You'll meet drivers properly in a minute.

Common Mistake

Programs Are Not Data

One common mistake: believing software and data are the same thing. A program is a set of steps, and data is what it works on. The same spreadsheet program can open Sam's orders today, and his budget tomorrow. And deleting a data file doesn't delete the program.

Definition

Firmware Stored on the Device

Now, where does the very first software come from? When you press the power button, there's nothing in memory yet. The computer needs instructions that are already there. They live in a chip on the motherboard, the main circuit board, and they stay put even with the power off. Software stored permanently on a hardware device is called firmware. Almost every gadget has some: a printer, a keyboard, a Wi-Fi router, even the controller in a memory stick. Lesson 1.9 shows how firmware starts the computer.

Device Drivers

Translators for Each Kind of Device

Then there's the problem of variety. Hundreds of companies make printers, each with its own way of receiving instructions. The OS can't know every one. A device driver solves this: a small piece of system software, written for one kind of device. It translates the OS's general request, like print this page, into the exact signals that one device understands.

Real Example

A Label Printer Needs Its Driver

Sam met this when he bought a second-hand label printer for his bakery boxes. Windows didn't know it, and nothing printed. Ivy, who looks after the computers at a school, found the maker's driver and installed it, and the labels came out. The printer was fine, she said. The OS just didn't have the translator. Keep your drivers updated, and get them from the device maker or the OS's own updates. Drivers run with a lot of power, so one from a random website is a risk.

Translation

Source Code, Compilers, and Interpreters

Last, how does software reach the processor? People write programs in a language they can read, like Python or C. That text is called source code. The processor can't read it. It only understands machine code: long strings of ones and zeros. So source code is translated first. A compiler translates it all at once, the way C works. An interpreter translates it line by line, as it runs. That's how Bash and Python run scripts.

Installing Apps

Copying, Loading, and Updating Code

When you install an app, its machine code and files are copied onto your disk, and the OS keeps a record of it. When you start the app, the OS loads that code into memory, and the processor follows it. An update replaces some of those files with newer ones, usually to fix mistakes or close security holes.

Quick Check

A Smart TV Rewrites Its Code

One more check. Ivy's smart TV shows a message: the maker has an update that rewrites the code built into the TV itself. No computer is involved. The TV downloads it and restarts. What kind of software is being updated? Pause, and decide. Firmware. The code lives on the TV itself, built into the device, and it's being replaced. That's exactly what a firmware update is. A device driver is the tempting answer, but a driver lives on a computer, and translates for a gadget plugged into it. Here, there's no computer at all. Home Wi-Fi routers get firmware updates the same way, and many of them run a small Linux system inside.

Key Takeaways

Instructions, Data, and Their Translators

To recap. Software is instructions; a program is one complete set of them, and data is what it works on. Apps serve the person. System software, led by the operating system, serves the machine. Firmware lives on the device itself. A driver translates the OS's requests for one kind of device. And source code is translated into machine code, by a compiler or an interpreter, before the processor can run it.

Try It

Sorting Eight Programs by Type

Here's something to try. List eight programs you used this week, and mark each one A for app, or S for system. Then, for every app, ask which system software it needed in order to work. You'll find the operating system on every list.

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 Software Basics

What is the difference between application software and system software?
Application software helps a person do a task they care about, such as writing a letter or editing photos, while system software serves the computer itself. The operating system is the most important system software, joined by helpers like file managers, disk checkers, and security programs. A quick test is to ask whom the program mostly serves: the person or the machine.
What is firmware and how is it different from a device driver?
Firmware is software stored permanently on a hardware device, so it stays in place even with the power off. A motherboard chip, a printer, a router, and a smart TV all carry firmware. A device driver, by contrast, lives on a computer and translates the operating system's general requests, like print this page, into the exact signals one kind of connected device understands.
What is the difference between a compiler and an interpreter?
A compiler translates a whole program's source code into machine code before it runs, which is how C usually works. An interpreter translates and carries out the code while the program runs, which is how Bash runs shell scripts. Either way, the processor can only execute machine code, the ones and zeros it understands, so human-readable source code must be translated first.
Why should device drivers come only from trusted sources?
Device drivers should come from the device maker or the operating system's own updates because drivers run with a lot of power inside the system. A driver from a random website could be faulty or malicious and harm the whole machine. Keeping trusted drivers updated also matters, since updates usually fix mistakes or close security holes in the code.

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 →