Skip to content
Tutorials Center
My learning

Topics

Lesson 4 of 55 ยท Meet the Computer

Types of Computers

Compare phones, laptops, servers, embedded devices, supercomputers and the cloud: how they differ in size, power and purpose, and what every computer has in common.

The word "computer" covers a huge range. The chip in a wireless earbud costs a few cents and sips almost no power. A supercomputer fills a hall, draws as much electricity as a small town and performs quadrillions of calculations per second. Yet both run programs, both have a processor and memory, and both follow the input, process, store, output cycle from What Is a Computer?.

This lesson tours the main families, explains what really separates them (purpose, size, power budget and reliability, not "how modern" they are), and ends with a small program that classifies devices by their role. You already know the parts from Hardware and Software; now you will see how they are arranged differently for different jobs.

The main families

Personal computers: desktops and laptops

A desktop has separate parts (case, monitor, keyboard) and can be upgraded easily. A laptop packs everything, including a battery, into one portable shell and trades some speed and upgradability for mobility. Both are general-purpose: they run word processors, browsers, games and development tools. A workstation is a desktop built for heavy professional work such as video editing or engineering, with more cores, memory and a strong graphics card.

Smartphones and tablets

A phone is a computer with a touchscreen, cameras, GPS, motion sensors and a radio for mobile networks. Its processor is usually a system on a chip (SoC): the CPU, graphics processor and many other parts sit on one piece of silicon, which saves space and energy. Phones and tablets run mobile operating systems such as Android and iOS and are designed around battery life.

Servers

A server is a computer whose job is to serve others: it answers requests for web pages, mail, files or databases. Servers often have no screen at all and are managed over a network. They emphasize reliability and capacity: error-correcting memory, redundant power supplies, many cores and fast network links, and they are meant to run for months without a reboot. The word describes a role, not a shape. A laptop can act as a server for a classroom demo, and a rack-mounted server can be used as a desktop.

Embedded systems

An embedded system is a small computer built into a product to control one task: a microwave, a car's engine controller, a thermostat, a pacemaker, a traffic light. It runs a fixed program (usually firmware), often with strict timing demands and a tiny memory. Most of the computers in the world are embedded. A modern car can contain dozens of them. Hobbyist boards such as Arduino and Raspberry Pi Pico are popular ways to learn this style of computing.

Mainframes and supercomputers

A mainframe is a very large, extremely reliable computer used by banks, airlines and governments to process millions of transactions a day without losing a single record. A supercomputer is built for the maximum speed on huge scientific calculations (weather forecasts, drug research, physics simulations). It combines thousands of processors, often with graphics accelerators, connected by very fast links so that they can work on one problem together. Performance of these machines is measured in FLOPS, floating-point operations per second.

The cloud

The cloud is not a different kind of hardware. It means renting computing power that runs in someone else's data centers, which are halls full of servers. You use it every time you stream a film, store photos online or use web email. The advantage is that you can ask for more capacity when you need it and pay only for what you use. The trade-offs are covered in Email, the Cloud and Everyday Online Services.

What differs and what stays the same

flowchart LR
  subgraph Same["Shared by all"]
    A["Processor"]
    B["Memory"]
    C["Storage"]
    D["Input and output"]
    E["Software"]
  end
  subgraph Differs["Varies a lot"]
    F["Size and power use"]
    G["Speed and capacity"]
    H["Reliability needs"]
    I["Who uses it, and how"]
  end
  Same --> Differs

All computers share the same building blocks; they differ in how those blocks are sized and what the machine is built for.

Here is a rough comparison. Numbers are typical orders of magnitude, not exact specifications.

Type Typical power use Main goal Usual operating system
Embedded controller milliwatts to a few watts Do one job cheaply and reliably Firmware or a tiny real-time OS
Smartphone a few watts Long battery life, many sensors Android, iOS
Laptop or desktop tens to hundreds of watts Flexible everyday work Windows, macOS, Linux
Server hundreds of watts per machine Serve many users, stay up Linux, Windows Server
Supercomputer megawatts for the whole machine Maximum calculation speed Mostly Linux

Power matters more than it first seems. Chips that use more power make more heat, and heat needs fans, heatsinks or water cooling. A phone has none of these, so its chip is designed to do as much as possible within a tiny energy budget.

Do not mix up "powerful" and "better". A thermostat's chip is far weaker than a phone's, yet it is the right computer for the job: cheap, tiny and reliable for years.

Classify devices by role

The next TryIt turns the comparison into code. Each device has a few simple properties; the function picks the family that fits best. It is a stand-in: real products blur the lines (a tablet with a keyboard behaves like a laptop), so treat the rules as teaching aids rather than industry definitions.

JS Sorting devices by role

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

No output.

Notice the order of the rules. The cluster also "serves others" and "runs one task", but the earlier rule catches it first. Changing the order of checks changes the answers, a first taste of how algorithms depend on careful ordering (see Algorithms and Problem Solving).

Now compare how many of each you probably use. This small calculation estimates the number of computers in a typical home.

JS Counting the computers in a home

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

No output.

The figures are made up for illustration, but the idea is real: most computers are invisible.

Choosing the right computer

When someone asks "which computer should I buy?", the honest answer starts with what they will do with it.

  • Browsing, writing, video calls: almost any recent laptop or tablet.
  • Programming: a laptop or desktop with enough RAM (16 GB is comfortable) and a fast SSD.
  • Video editing, 3D, machine learning: a workstation with a strong GPU and lots of memory.
  • Running a website for the public: a rented server or cloud instance rather than your own PC.
  • Controlling a robot or sensor: a microcontroller or a single-board computer.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What best describes a server?

    A server is defined by its role: answering requests from clients. Its size and shape can vary.
  2. 2. Which is an embedded system?

    An embedded system is a small computer built into a product to do a dedicated job, such as running a washing cycle.
  3. 3. What is a system on a chip (SoC)?

    An SoC puts many components on one piece of silicon, saving space and power.
  4. 4. What is 'the cloud' in practical terms?

    The cloud is ordinary servers in data centers, accessed over the network and billed by use.

Summary

  • Computers range from tiny embedded controllers to supercomputers, but all share a processor, memory, storage, input/output and software.
  • Personal computers are general-purpose; phones are optimized for battery life and use an SoC.
  • A server is a role: it answers requests from other machines and is built for reliability.
  • Embedded systems are hidden computers inside products and are by far the most numerous.
  • Supercomputers combine thousands of processors for one huge task; the cloud rents data-center servers to anyone.
  • "More powerful" is not "better"; match the machine to the job.

Next, look at how data gets in and out: Input and Output Devices.