Skip to content
Tutorials Center
My learning

Topics

Lesson 3 of 55 ยท Meet the Computer

Hardware and Software

Understand hardware and software: physical parts, system and application software, firmware, drivers, and the layers a request passes through from your click to the circuits.

Everything in computing falls into one of two groups. Hardware is what you can touch: the processor, memory chips, storage drives, screen and cables. Software is the set of instructions that tells the hardware what to do: a web browser, a game, the operating system. A useful comparison is a music box and its tune. The box is the hardware, the pattern of pins is the software, and a different pattern makes the same box play a different song.

Knowing where the line falls helps you in daily life. When a laptop freezes, is the disk dying or did a program misbehave? When you buy a phone, why do software updates matter as much as the chip? This lesson sorts the parts, explains the kinds of software, and shows how a simple click travels down through layers before it reaches the circuits. It follows What Is a Computer?.

Hardware: the physical parts

Hardware groups naturally by the four jobs from the previous lesson:

Job Typical hardware
Input keyboard, mouse, touchscreen, microphone, camera, sensors
Processing CPU (central processing unit), GPU (graphics processing unit)
Storage RAM (working memory), SSD or hard drive (long-term storage)
Output display, speakers, printer
Connection motherboard, network card, USB ports, cables

You do not need to memorize these yet. Later chapters open each box: the CPU, memory and storage. The point for now is that hardware is fixed in form: you cannot copy a chip over the internet, and it wears out.

Software: instructions that can change

Software is information. It can be copied, sent over a network and changed without a screwdriver. It is usually divided into three families.

System software manages the machine and gives other programs a stable place to run.

  • The operating system (Windows, macOS, Linux, Android, iOS) shares the hardware between programs and provides files, windows and networking. See What an Operating System Does.
  • Drivers are small programs that teach the operating system how to talk to one particular device, such as a printer or graphics card.
  • Utilities maintain the system: file managers, backup tools, antivirus programs.

Application software helps you do your own tasks: a browser, a spreadsheet, a photo editor, a game, a chat app. Applications do not touch hardware directly; they ask the operating system.

Programming software is used to build other software: editors, compilers and interpreters. You will meet these in Programming Languages, Compilers and Interpreters.

Firmware: software living in hardware

Between the two sits firmware, software stored in a chip on the device itself so that it is still there when the power is off. When you press the power button, the processor has nothing in RAM yet. It starts by running firmware (called BIOS or UEFI on most PCs), which checks the hardware and then loads the operating system from storage. Routers, TVs, keyboards and printers run firmware too. It can usually be updated, which is why a "firmware update" can fix a bug in a device that looks purely physical.

Software is not "lighter" than hardware in any physical sense, but it is easier to change. That is why many products shift features from circuits to code: a software update can add a feature to a device that is already in your hands.

Layers: from your click to the circuits

Computers are built in layers. Each layer only talks to the layer directly below it and hides the details underneath. This keeps things manageable: the person who writes a photo app does not need to know how a particular SSD stores bits.

flowchart TB
  U["You<br/>click Save"] --> A["Application<br/>photo editor"]
  A --> O["Operating system<br/>file system, scheduler"]
  O --> D["Driver<br/>speaks to this storage device"]
  D --> H["Hardware<br/>storage controller and chips"]

A single action passes through every layer; each one hides the details of the one below.

When you click Save, the photo editor does not write to the drive. It asks the operating system to save a file. The operating system decides where the data goes in the file system and calls the right driver. The driver sends commands that the storage controller understands, and finally electric signals change the state of memory cells.

The same path runs in reverse for results: signals come up, the driver reports success, the operating system tells the app, and the app shows "Saved".

Let us build a toy version. Each layer is a function that logs its work and calls the layer below.

JS A layer-call tracer

Press Run (or Ctrl + Enter) to see the console output here.

No output.

The output reads like a stack going down and back up. Notice that clickSave never mentions the driver or hardware. If you changed the storage device, only the driver would need replacing. That separation is why you can plug a new printer into an old computer and have it work once its driver is installed.

The tracer is a stand-in. Real layers exchange memory addresses and numeric commands, not friendly text, and the real operating system does far more work (security checks, caching, scheduling). The shape of the calls, however, is faithful.

Telling hardware problems from software problems

You can often guess which side a fault is on.

  • Hardware symptoms: the device will not power on, strange noises, screen lines that appear on every program, files vanishing from a drive that clicks or heats up.
  • Software symptoms: one program crashes while others run fine, a problem begins after an update, restarting fixes it, a message names a program or file.

The line is blurry sometimes. A badly written driver can make good hardware look broken, and failing memory can make good software crash at random. A systematic approach is covered in Troubleshooting, Performance and Upgrades.

JS Sort things into hardware, software or firmware

Press Run (or Ctrl + Enter) to see the console output here.

No output.

System, application and utility software compared

Software is usually sorted into three groups by what it is for.

System software runs the computer itself and gives other software a place to run. It includes the operating system, device drivers (which let the OS talk to a printer, graphics card or keyboard), firmware and the language translators (compilers and interpreters) that turn programs into something the machine can run. You rarely use it directly; you notice it only when it is missing or broken.

Application software helps people do tasks: browsers, word processors, games, photo editors, messaging apps, accounting programs. It runs on top of the operating system and asks it for resources. Applications can be general-purpose (a word processor anyone can use), specialized (hospital scheduling software) or custom-made for one customer.

Utility software maintains and protects the computer: antivirus, backup tools, disk cleanup and defragmenters, file compressors, disk-partition managers, system monitors. Some utilities come with the operating system (Task Manager, Disk Cleanup), others are installed separately. Utilities sit between the two groups: they serve the machine, but you run them yourself.

flowchart TD
  U["User"] --> A["Application software<br/>browser, word processor, games"]
  U --> UT["Utility software<br/>antivirus, backup, cleanup"]
  A --> OS["System software<br/>operating system, drivers, translators"]
  UT --> OS
  OS --> HW["Hardware"]

Applications and utilities both run on system software, which controls the hardware.

System software Application software Utility software
Purpose Run and manage the computer Do tasks for the user Maintain, protect and tune the computer
Examples Windows, Linux, macOS, drivers, firmware, compilers Chrome, Word, Photoshop, Minecraft Antivirus, backup tool, ZIP compressor, disk cleaner
Depends on Hardware The operating system The operating system
Used by The computer and other software People People and administrators
Installed Before everything else By the user, as needed Built in or added
Runs Always in the background While you use it On demand or on a schedule
If it fails The whole machine may stop Only that program is affected Maintenance or protection is lost

Operating system versus software in general

A common confusion is to treat "software" and "operating system" as the same thing. The operating system is one kind of software, the most basic one. All the other programs depend on it for files, memory, networking and the screen. Because of that dependency, a program written for one operating system does not run on another without changes: a Windows .exe will not start on a Mac or an iPhone. Programmers can still reach several systems by using portable languages, web technology or cross-platform tools.

Other ways to classify software

  • By licence: proprietary (closed source, paid or free to use), open source (source code available for everyone), freeware, shareware (trial) and subscription software (see Digital Ethics and Licensing).
  • By delivery: installed (on your device), web apps (run in the browser), mobile apps, and SaaS (software as a service, paid by subscription, run by the provider).
  • By origin: off-the-shelf software sold to many users, versus custom software built for one organization.
  • Middleware connects other programs (for example message queues and database drivers), and embedded software is built into devices such as microwaves and cars.
Python Sort programs into software types

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which item is hardware?

    An SSD is a physical component. Programs, drivers and operating systems are all software.
  2. 2. What does a device driver do?

    A driver translates the operating system's general requests into the commands one particular device understands.
  3. 3. Why does firmware stay on a device when the power is off?

    Firmware is kept in non-volatile memory on the device, so it is available as soon as power returns.
  4. 4. In the layered model, which layer does an application normally talk to directly?

    Applications ask the operating system for services. The operating system and drivers handle the hardware.

Summary

  • Hardware is the physical machine; software is the instructions that tell it what to do.
  • System software (operating system, drivers, utilities) manages the machine; application software does your tasks.
  • Firmware is software stored in a chip on the device; it starts the computer and runs simple devices.
  • Computers are built in layers, each hiding details of the layer below.
  • A click becomes a request that passes application, operating system, driver and hardware.
  • Fixing a problem starts with deciding whether the cause is physical or in the software.

Continue with the many shapes computers come in: Types of Computers.