The short answer
An embedded system is a computer built into a larger product to do one specific job, like controlling a washing machine or a car’s brakes. A general-purpose computer, such as a laptop, desktop or server, is built to run whatever software its user chooses, from spreadsheets to games to web browsers.
That difference in purpose drives almost every other difference. Embedded systems are designed around a fixed task, so their hardware, software, power use and cost can all be tuned to it. General-purpose computers have to be ready for anything, so they carry more processing power, memory, storage and a full operating system.
For a fuller definition of each side, see what an embedded system is and what a general-purpose system is.
Side-by-side comparison
| Feature | Embedded system | General-purpose computer |
|---|---|---|
| Purpose | One dedicated function or a small set of related functions | Many different tasks chosen by the user |
| Software | Fixed firmware, written for that device | User installs and runs any compatible applications |
| Processor | Usually a microcontroller or a specialized system-on-chip | Powerful general-purpose CPU, often multi-core |
| Memory and storage | Often kilobytes to megabytes; program in on-chip flash | Gigabytes of RAM; large SSD or hard drive |
| Operating system | None (bare metal), a real-time OS, or embedded Linux | Windows, macOS, Linux, or similar |
| Timing | Often must respond within guaranteed deadlines | Optimized for average speed and throughput, not guaranteed timing |
| User interface | Often minimal: a few buttons, LEDs, a small display, or none | Keyboard, mouse, touchscreen, large display |
| Power | Often very low; many run on batteries for months or years | Higher; fans and larger power supplies are common |
| Cost per unit | Can be very low, especially in high volumes | Higher |
| Lifespan | Often designed to run unattended for many years | Typically replaced or upgraded every few years |
| Updates | Firmware updates, sometimes rare or impossible | Frequent OS and application updates |
| Examples | Microwave, thermostat, ABS module, fitness tracker, router | Laptop, desktop PC, workstation, server |
The key differences explained
Purpose and flexibility
A general-purpose computer is defined by its flexibility. The same laptop can edit video in the morning and run a programming environment in the afternoon. An embedded system is defined by its focus. The controller in a dishwasher will run wash cycles for its whole life and nothing else. Users generally can’t install new programs on it, and it isn’t meant to be reprogrammed except through manufacturer updates.
Hardware
General-purpose computers use high-performance processors with large caches, plenty of RAM, and expandable storage and ports. Embedded systems usually use a microcontroller, a single chip that combines a processor, flash memory, RAM and peripherals such as timers, analog-to-digital converters and communication interfaces. More demanding embedded products use application processors or systems-on-chip. Our guide to microcontrollers vs microprocessors explains the difference.
Embedded hardware also tends to include parts a PC doesn’t: sensor inputs, motor drivers, relays, and industrial or automotive interfaces such as CAN.
Operating system: RTOS, bare metal, or general-purpose OS
General-purpose computers run a general-purpose operating system (GPOS) such as Windows, macOS or a desktop Linux distribution. A GPOS is designed to share the computer fairly among many programs and users and to keep the system responsive on average.
Embedded systems use one of three approaches:
- Bare metal (no operating system): the firmware runs directly on the hardware, usually as a main loop plus interrupt handlers. This is common in small, simple devices.
- Real-time operating system (RTOS): a small OS, such as FreeRTOS or Zephyr, that schedules multiple tasks in a predictable way so time-critical work happens on time.
- Embedded Linux or another full OS: used in more complex devices like routers, smart TVs and infotainment systems, usually trimmed down and configured for the product.
Timing and performance
A general-purpose computer is optimized to get as much work done as possible on average. If a background update makes your browser stutter for half a second, that’s annoying but harmless.
Many embedded systems can’t tolerate that. An airbag controller, a motor drive or a pacemaker must respond within a fixed deadline every time. This is called real-time behavior, and it’s often more important than raw speed. An embedded system running a slow microcontroller can be “faster” than a PC where it counts, because it responds predictably.
User interface
General-purpose computers assume a person is sitting in front of them. Embedded systems often have only a few buttons and LEDs, a small display, or no user interface at all. Many communicate only with other machines, for example over a sensor bus or network.
Power, size and cost
Embedded systems are frequently battery-powered or must run without fans, so they’re designed to use as little power as possible, often sleeping most of the time and waking only to do work. They’re also designed to fit in tight spaces and to cost as little as possible. In a product made by the million, saving a small amount per unit adds up quickly.
Reliability, environment and lifespan
A home PC lives in a comfortable room and is replaced every few years. Embedded systems may sit inside an engine bay, a factory, a utility pole or a human body, facing heat, cold, vibration and moisture, and running for many years without a restart. They often use features like watchdog timers to recover automatically if the firmware hangs.
Updates and security
General-purpose computers receive frequent OS and application updates. Embedded systems are harder to update. Some have no update mechanism at all. Others receive occasional firmware updates, increasingly over the air. That makes security a serious challenge for connected embedded devices, which may stay in service long after their software is out of date. Our article on the advantages, disadvantages and challenges of embedded systems covers these trade-offs.
Examples of embedded systems
- Microwave ovens, washing machines and dishwashers
- Digital thermostats and smart plugs
- TV remotes, wireless earbuds and digital cameras
- Fitness trackers
- A car’s engine control unit, ABS and airbag modules
- Wi-Fi routers and network switches
- Pacemakers and infusion pumps
- Programmable logic controllers (PLCs) and robot controllers
- ATMs and card payment terminals
See our guide to embedded system examples and applications for many more.
Examples of non-embedded (general-purpose) systems
These are computers you buy to run whatever software you need:
- Desktop PCs running Windows, macOS or Linux
- Laptops and notebooks
- Workstations used for engineering, design and video editing
- Servers in data centers that run databases, websites and cloud services
- Mainframes used by banks and large organizations for transaction processing
- Supercomputers used for scientific simulation
Tablets are usually grouped here too, since users install their own apps.
Gray areas
The line isn’t always sharp. Some devices sit in between:
- Smartphones are general-purpose computers from the user’s point of view, but they contain many embedded subsystems, such as the cellular modem, camera processor and power management chips.
- Smart TVs and streaming boxes run full operating systems and app stores, but they’re built around one main purpose. They’re often described as embedded or consumer devices.
- Game consoles are powerful computers locked to a specific purpose and software ecosystem. People reasonably classify them either way.
- Industrial PCs are general-purpose hardware, but when one is bolted into a machine and runs a single control application for years, it’s effectively serving as an embedded system.
- Raspberry Pi is a general-purpose single-board computer that’s often used as the core of an embedded project. We explore this in is a Raspberry Pi an embedded system?
The useful question is usually not “what is this hardware?” but “how is it being used?” The same computer can be general-purpose on a desk and embedded inside a kiosk.
How to tell which one you’re looking at
Ask these questions:
- Is it part of a larger product whose main purpose isn’t computing? If yes, it’s likely embedded.
- Can the user install arbitrary software on it? If yes, it’s likely general-purpose.
- Does it interact directly with sensors, motors or other physical hardware? That points to embedded.
- Does it have hard timing deadlines? That points to embedded.
- Would you call it “a computer” in everyday speech? If not, it’s almost certainly embedded.
Frequently asked questions
What is the difference between a real-time OS and a general-purpose OS?
A general-purpose OS, like Windows or desktop Linux, aims for good average performance and fairness across many programs, but it doesn’t guarantee how quickly any particular task will run. A real-time OS is designed for predictability: it schedules tasks so that high-priority work runs within known time limits. That’s why RTOSes are used in embedded systems with deadlines, such as motor control or medical devices.
What does “no operating system” mean?
It means the software runs directly on the hardware without an OS underneath. This is called bare-metal programming. The firmware sets up the processor and peripherals itself and usually runs a main loop, with interrupts handling time-sensitive events. Many small embedded devices, such as remotes and simple appliances, work this way.
What is the difference between IoT and embedded systems?
An embedded system is any dedicated computer inside a device. An IoT device is an embedded system that’s also connected to a network, typically to send data to or receive commands from other devices or cloud services. Most IoT devices are embedded systems, but many embedded systems aren’t connected to anything.
Is a laptop an embedded system?
No. A laptop is a general-purpose computer because it’s designed to run whatever software you choose. It does contain small embedded systems, though: the keyboard controller, the battery management chip, the SSD controller and the Wi-Fi module each run their own dedicated firmware.