The Big Picture: One Family, Built in Layers

In Chapter 7 you learned what an operating system (OS) does: it shares the hardware between programs, keeps them apart, and gives them simple tools so they do not have to talk to chips directly. This chapter opens up Windows and shows how it is built.

The key idea is layers. Think of a restaurant. The customer (an app) never walks into the kitchen. The customer tells a waiter what they want. The waiter passes the order to the kitchen. The kitchen uses the stoves and fridges (the hardware). Each layer talks only to the layer next to it.

┌──────────────────────────────────────────────────┐
│  Your programs   (Chrome, Word, games)           │  USER MODE
├──────────────────────────────────────────────────┤  (ring 3)
│  Windows libraries and system programs           │
╞══════════════════════════════════════════════════╡  <- the wall
│  Windows kernel and Executive  (ntoskrnl.exe)    │  KERNEL MODE
├──────────────────────────────────────────────────┤  (ring 0)
│  Drivers  +  HAL (Hardware Abstraction Layer)    │
├──────────────────────────────────────────────────┤
│  Hardware: CPU, RAM, SSD, GPU, network card      │  PHYSICAL
└──────────────────────────────────────────────────┘

Remember rings from Chapter 2: the CPU has a "safe" level for normal programs (ring 3) and a "powerful" level for the core of the OS (ring 0). Windows uses exactly those two. The thick wall in the picture is that boundary. The rest of this chapter is a tour of each layer.

1.1 Windows as an Operating System

What it is: Windows is a general-purpose, multitasking, multi-user operating system made by Microsoft. "Multitasking" means it runs many programs at the same time. "Multi-user" means it can keep several people's files and settings apart.

What it hides from you. Below Windows sits real hardware, which is messy: every board has different chips, ports and addresses. Here are two real photos of that layer.

A real motherboard with twelve numbered parts

Figure 8.1 — The raw hardware that Windows sits on. Every board has different chips in different places. Windows must work on all of them. Photo: Arnulf zu Linden, CC BY-SA 3.0, numbers added, via Wikimedia Commons.

The back panel of a PC with USB, audio, network and video sockets

Figure 8.2 — The back of a PC: USB, audio, network and video sockets. A program that "plays a sound" does not know which of these chips makes the noise. Windows knows, and hides it. Photo: Hitachi-Train, public domain, via Wikimedia Commons.

The five jobs Windows does for every program:

JobIn plain words
Run programsLoad them, give each a turn on the CPU (Chapter 7 scheduling)
Manage memoryGive each program its own private address space (virtual memory)
Talk to devicesDisks, screen, keyboard and network, through drivers
ProtectStop one program or user from damaging another
Offer servicesFiles, windows, sound, networking, all through simple function calls

The Windows design goals, simply put. Windows was designed to be portable (run on different CPU types), reliable (a bad app should not crash the whole PC), secure, compatible (old programs keep working) and extensible (new drivers and features can be added). Many odd things in Windows make sense once you remember "compatibility" is a goal: Microsoft keeps old behaviours for decades.

1.2 NT-Based Architecture

What it is: Every modern Windows (10 and 11 included) is built on the NT architecture. "NT" originally stood for New Technology. It is the design under the hood, not the pretty desktop on top.

Where it came from. In the late 1980s Microsoft hired Dave Cutler, a famous OS designer, who had led work on operating systems at Digital Equipment Corporation (DEC). His team built a brand-new, clean system from scratch. It was first released as Windows NT 3.1 in 1993.

What was new compared to old Windows:

Old Windows (3.x, 95, 98, Me)NT-based Windows
Ran on top of MS-DOSA complete OS of its own, no DOS underneath
Programs could overwrite each other's memoryEvery program gets private virtual memory
Mostly 16-bit or mixed code32-bit, later 64-bit from the start
Weak or no user accountsSecurity built in from day one (users, permissions)
One crashing app often froze everythingProtected mode: an app crash stays with the app

Two families, one merge. For years Microsoft had two lines: the DOS-based line (Windows 95, 98, Me) for home users, and the NT line (NT, 2000) for businesses. With Windows XP (2001) the home users moved to NT too. The DOS line ended. Today all Windows is NT.

Key NT building blocks (each one gets its own section later):

Building blockShort meaningSection
HALHides hardware differences2
Kernel + ExecutiveThe core of the OS2, 3
DriversTeach Windows to use a device2
Subsystem DLLsLibraries that apps call4
System processesPrograms Windows runs to run itself5
Object ManagerNames and tracks every resource6
RegistrySettings database7

Windows tip: Press Win + R, type winver, press Enter. The dialog shows your version and build number. Notice that even Windows 11 reports an internal version in the "10.0" family: the NT version number barely changed because the architecture is the same.

1.3 History: NT, 2000, XP, Vista, 7, 8, 10, 11

What it is: A short tour of the NT line. You do not need to remember dates. You need to see how the same core grew over time.

ReleaseYearInternal versionWhat mattered (for architecture)
Windows NT 3.119933.1The first NT. Clean design, 32-bit, own security model
NT 3.51 / NT 4.01995 / 19963.51 / 4.0NT 4.0 gave NT the Windows 95 look; graphics moved into the kernel for speed
Windows 200020005.0Plug and Play, Active Directory, strong business version
Windows XP20015.1Home and business merge on NT; first 64-bit editions came around this time
Windows Vista20076.0Session 0 isolation, User Account Control (UAC), new driver model, ASLR (random memory layout for safety)
Windows 720096.1Polished Vista; fast and popular
Windows 8 / 8.12012 / 20136.2 / 6.3Tablet-style apps (the first "modern" app model), faster boot
Windows 10201510.0One platform for PC, phone and more; updates arrive as a service
Windows 11202110.0 (build 22000 and up)New look; needs newer hardware (TPM 2.0, Secure Boot); 64-bit only

What did not change. Look at the "Internal version" column. From Vista to Windows 7 to 8 to 10 and 11 the numbers move only a little. The big layers (HAL, kernel, Executive, drivers, subsystem) stayed. Microsoft improves the NT core instead of throwing it away. That is why a program written years ago often still runs.

Server editions. The same core also powers Windows Server. Server and desktop share most code and differ in settings, features and licence.

1.4 Version Differences

What it is: The ways one Windows version can differ from another, even when the core is the same.

1. Edition (the product tier). Same version, different features.

EditionTypical userExamples of extra features
HomeFamiliesBasic features
ProPower users, small businessJoin a company domain, BitLocker drive encryption, Remote Desktop host
Enterprise / EducationBig organisationsExtra security and management tools
ServerComputers that serve othersServer roles (file, web, directory)

2. Architecture (32-bit vs 64-bit). A 32-bit Windows can address only about 4 GB of memory. A 64-bit Windows can address far more. It also runs old 32-bit programs through a compatibility layer called WOW64 (Windows-on-Windows 64). Windows 11 comes only in 64-bit. Some versions also exist for ARM CPUs, not just Intel and AMD.

3. Build number and feature updates. Windows 10 and 11 receive big updates (for example "22H2", "23H2") that change the build number while the name stays the same. Smaller updates arrive monthly.

4. Hardware and security requirements. Windows 11 needs features such as TPM 2.0 (a small security chip) and Secure Boot (Chapter 5). Windows 10 is more relaxed.

Find out what you have:

Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, BuildNumber, OSArchitecture

Or press Win + R, type msinfo32, and read OS Name, Version and System Type.

Summary

TopicRemember this
Windows as an OSShares the hardware, protects programs, offers services, hides the hardware mess
LayersApps → libraries → kernel and Executive → drivers and HAL → hardware
RingsUser mode is ring 3, kernel mode is ring 0
NTClean, 32/64-bit, secure design started in 1993; all modern Windows is NT
HistoryNT 3.1 → 2000 → XP → Vista → 7 → 8 → 10 → 11: same core, steady growth
DifferencesEdition, 32 vs 64-bit, build number, hardware needs