Windows Operating System
1. What is Windows?
Microsoft Windows is a family of proprietary operating systems developed by Microsoft for personal computers, servers, and other devices.
Examples include:
- Windows 10
- Windows 11
- Windows Server
Simple definition
Windows is a graphical operating system that manages computer hardware and provides an environment for users and applications to run.
2. Main Functions of Windows
Windows performs the major functions expected from an operating system:
Windows │ ├── Process Management ├── Memory Management ├── File Management ├── Device Management ├── I/O Management ├── Security ├── Networking ├── User Management └── Application Management
3. Windows Architecture
A simplified Windows architecture is:
┌──────────────────────────────────┐ │ Applications │ │ Browser │ Office │ Games │ etc. │ ├──────────────────────────────────┤ │ User Mode │ │ │ │ Win32 / Windows APIs │ │ System Services │ │ Runtime Libraries │ ├──────────────────────────────────┤ │ Kernel Mode │ │ │ │ Executive │ │ Windows Kernel │ │ Device Drivers │ │ Hardware Abstraction Layer │ ├──────────────────────────────────┤ │ Hardware │ │ CPU │ RAM │ SSD │ GPU │ Devices │ └──────────────────────────────────┘
4. User Mode and Kernel Mode
Windows separates applications from privileged operating-system code.
User Mode
Applications generally run in user mode.
Examples:
Chrome VS Code Notepad Games Python programs
A user-mode application normally cannot directly access hardware or critical kernel memory.
Kernel Mode
Kernel-mode components have much higher privileges.
They include:
- Windows kernel
- Executive components
- device drivers
- other privileged components
Diagram:
User Mode ↓ Windows API ↓ System Call / System Service ↓ Kernel Mode ↓ Hardware
Why separation?
Mainly for:
- security
- stability
- isolation
- controlled hardware access
5. Windows Kernel
The Windows kernel is the core part of the operating system.
It provides low-level mechanisms for:
- CPU scheduling
- interrupts
- synchronization
- memory management
- hardware interaction
- process/thread execution
The Windows kernel is part of a larger Windows kernel-mode architecture.
6. Windows Executive
The Windows Executive contains major operating-system services above the low-level kernel.
Conceptually:
Windows Executive │ ├── Process/Thread Management ├── Memory Management ├── I/O Manager ├── Object Manager ├── Security Reference Monitor ├── Configuration Manager └── Other system components
This is an important distinction:
Windows Kernel ≠ Entire Windows OS
The kernel and executive together form important parts of the Windows kernel-mode system.
7. Hardware Abstraction Layer (HAL)
The Hardware Abstraction Layer (HAL) provides an abstraction between Windows and hardware-specific details.
Conceptually:
Windows ↓ HAL ↓ Hardware
This helps Windows support different hardware platforms without requiring every upper-level component to understand every hardware-specific detail.
8. Windows API
Applications generally use Windows APIs to request operating-system functionality.
For example, an application may need to:
- create a file
- allocate memory
- create a process
- communicate over a network
- create a window
Conceptually:
Application ↓ Windows API ↓ Operating System ↓ Hardware
The Win32 API is a major Windows application programming interface.
9. Windows Processes
A process is a running instance of a program.
Example:
Notepad.exe ↓ Process
A process has resources such as:
- virtual address space
- handles
- security token
- threads
- loaded modules
- process ID
10. Process ID — PID
Every Windows process has a Process ID (PID).
Example:
chrome.exe PID 4520 explorer.exe PID 2816
You can see processes using:
Task Manager
or from the command line:
tasklist
11. Windows Threads
A process contains one or more threads.
Process │ ├── Thread 1 ├── Thread 2 └── Thread 3
A thread is an execution unit scheduled by the operating system.
Process vs Thread
| Process | Thread |
|---|---|
| Resource container | Execution unit |
| Has virtual address space | Shares process address space |
| More expensive to create | Usually cheaper |
| Isolated from other processes | Threads of same process share resources |
12. Windows Process and Thread Relationship
Application ↓ Process ↓ ┌───────┬───────┬───────┐ ↓ ↓ ↓ Thread Thread Thread
For example, a browser can have multiple processes and multiple threads.
13. Windows Process Scheduling
Windows uses priority-based, preemptive scheduling.
The scheduler chooses which ready thread should execute.
Simplified:
Ready Threads ↓ Windows Scheduler ↓ Select Thread ↓ CPU
Windows can interrupt a currently executing thread and schedule another one.
This is preemption.
14. Thread Priority
Windows assigns priorities to threads.
Conceptually:
Higher priority ↓ Thread A ↓ Thread B ↓ Thread C ↓ Lower priority
The exact scheduling behavior is more sophisticated than simply “highest priority always runs,” because Windows also uses dynamic priority adjustments and other scheduling mechanisms.
15. Windows Memory Management
Windows uses virtual memory.
Each process gets its own virtual address space.
Process A Virtual Memory ↓ Physical RAM Process B Virtual Memory ↓ Physical RAM
This provides:
- isolation
- protection
- flexible memory management
- virtual address spaces larger than immediately available physical RAM
16. Virtual Memory
A simplified model:
Virtual Address ↓ Memory Management Unit ↓ Page Tables ↓ Physical Memory
If required data is not currently in physical memory, Windows can retrieve it from backing storage.
This can result in a page fault.
17. Paging in Windows
Windows uses paging as an important part of virtual-memory management.
Virtual memory is divided into pages, while physical memory is divided into page frames.
Virtual Memory ┌────┬────┬────┬────┐ │ P0 │ P1 │ P2 │ P3 │ └────┴────┴────┴────┘ Physical RAM ┌────┬────┬────┬────┐ │ F3 │ F0 │ F7 │ F2 │ └────┴────┴────┴────┘
A page table maps virtual pages to physical frames.
18. Page File
Windows can use a page file, commonly:
pagefile.sys
It provides backing storage for virtual-memory operations.
Conceptually:
RAM ↓ Memory pressure ↓ Virtual-memory management ↓ Page file on storage
Important:
The page file is not equivalent to physical RAM.
Using storage for paging is much slower than accessing RAM.
19. Windows Filesystem
Windows supports multiple filesystems.
Common examples:
- NTFS
- exFAT
- FAT32
- ReFS in applicable Windows environments
The most important general-purpose Windows filesystem is NTFS.
20. NTFS
NTFS = New Technology File System
It provides features such as:
- file permissions
- security descriptors
- journaling
- large file support
- metadata
- compression support
- encryption features through Windows technologies
- hard links
- alternate data streams
21. Windows Drive Letters
Windows commonly uses drive letters.
Example:
C:\ D:\ E:\
Typical arrangement:
C:\ ├── Windows ├── Users ├── Program Files └── ProgramData
Unlike Linux, Windows traditionally exposes mounted volumes using drive letters, although Windows also supports other mounting mechanisms.
22. Important Windows Directories
C:\Windows
Contains core Windows operating-system files.
C:\Users
Contains user profiles.
Example:
C:\Users\Uday
A user profile can contain:
Desktop Documents Downloads Pictures Videos AppData
C:\Program Files
Common location for installed 64-bit applications.
C:\Program Files (x86)
Common location for 32-bit applications on 64-bit Windows.
AppData
Typically stores per-user application data.
Example:
C:\Users\Uday\AppData
It commonly contains:
Local LocalLow Roaming
23. Windows Registry
The Windows Registry is a hierarchical database used to store configuration information.
Conceptually:
Windows Registry │ ├── System configuration ├── Hardware information ├── User settings ├── Application configuration └── Security-related configuration
Registry hives include:
HKEY_LOCAL_MACHINE HKEY_CURRENT_USER HKEY_CLASSES_ROOT HKEY_USERS HKEY_CURRENT_CONFIG
24. Registry Hive Concept
For example:
HKLM
HKEY_LOCAL_MACHINE
Contains machine-wide configuration.
HKCU
HKEY_CURRENT_USER
Contains configuration for the currently logged-in user.
25. Windows Services
A Windows service is a background program/component that provides system or application functionality.
Examples:
- Windows Update
- networking services
- security services
- database services
Services can be managed through:
services.msc
or command-line tools such as:
sc
and PowerShell commands such as:
Get-Service
26. Windows Device Management
Windows uses device drivers to communicate with hardware.
Architecture:
Application ↓ Windows I/O Manager ↓ Device Driver ↓ Device Controller ↓ Hardware
Examples:
- graphics driver
- network driver
- audio driver
- USB driver
- storage driver
27. Device Manager
Windows provides Device Manager to view hardware and drivers.
It can show categories such as:
Display adapters Network adapters Disk drives Keyboards Ports Universal Serial Bus controllers
You can open it using:
devmgmt.msc
28. Windows I/O Management
Windows provides an I/O subsystem that coordinates communication between applications, drivers, and devices.
Simplified:
Application ↓ Windows API ↓ I/O Manager ↓ Driver ↓ Device
The I/O system supports concepts such as:
- asynchronous I/O
- buffering
- caching
- interrupts
- DMA
- device drivers
- I/O completion
29. Windows Interrupts
Hardware devices can generate interrupts.
Example:
Keyboard ↓ Interrupt ↓ CPU ↓ Windows Kernel ↓ Driver/ISR ↓ Process appropriate event
Interrupts allow the CPU to respond to hardware events without continuously polling every device.
30. Windows Security
Windows has multiple security mechanisms.
Important concepts include:
- user accounts
- groups
- access tokens
- permissions
- security identifiers
- authentication
- User Account Control
- Windows Defender
- firewall
- security policies
- virtualization-based security on supported configurations
31. User Account Control — UAC
UAC helps prevent applications from silently performing privileged operations.
Example:
Application ↓ Needs elevated privileges ↓ UAC prompt ↓ User approval/credentials ↓ Elevated operation
This reduces the chance that malicious or accidental software can make system-wide changes without user awareness.
32. Windows Firewall
Windows includes a built-in firewall.
Its role includes controlling network traffic according to configured rules.
Conceptually:
Internet ↓ Firewall ↓ Allowed / Blocked ↓ Windows
33. Windows Defender
Microsoft Defender provides security capabilities such as:
- malware protection
- threat detection
- real-time protection
- security monitoring
The exact components and features depend on the Windows edition and configuration.
34. Windows Networking
Windows supports:
- Ethernet
- Wi-Fi
- TCP/IP
- DNS
- DHCP
- routing
- sockets
- VPN
- network sharing
Useful commands include:
ipconfig ping tracert nslookup netstat
PowerShell also provides modern networking commands.
35. Windows Boot Process
A simplified modern Windows boot sequence:
Power ON ↓ UEFI / Firmware ↓ Windows Boot Manager ↓ Windows Boot Loader ↓ Windows Kernel ↓ Kernel initialization ↓ System processes/services ↓ Logon ↓ Desktop
36. Windows Boot Manager
The Windows boot manager is responsible for selecting/loading the appropriate Windows boot environment.
A common executable is:
bootmgfw.efi
on UEFI-based systems.
37. Windows Kernel Initialization
After the boot loader loads the required kernel components:
Windows Kernel ↓ Hardware initialization ↓ Memory management ↓ Drivers ↓ System processes ↓ Services ↓ Logon
38. Windows Explorer
Windows Explorer, commonly represented by:
explorer.exe
provides major parts of the Windows desktop shell, including:
- desktop
- taskbar
- Start-related shell interfaces
- File Explorer
It is different from the Windows kernel.
39. Windows Shell
The Windows shell provides the user interface through which users interact with Windows.
Examples include:
Desktop Start menu Taskbar File Explorer
Windows also provides command-line shells:
Command Prompt PowerShell
40. Command Prompt
Command Prompt uses the traditional Windows command-line environment.
Executable:
cmd.exe
Example:
dir
41. PowerShell
PowerShell is a more powerful command-line shell and scripting environment.
It works with structured objects rather than only plain text output.
Example:
Get-Process
Another:
Get-Service
42. Windows Processes and Task Manager
Task Manager provides information about:
- processes
- CPU
- memory
- disk
- network
- GPU
- startup applications
- users
- services
You can open it using:
Ctrl + Shift + Esc
43. Windows File Permissions
Windows uses security descriptors and Access Control Lists (ACLs).
Conceptually:
File ↓ Security Descriptor ↓ ACL ↓ Access Rules
An ACL contains access control entries that specify which users/groups can perform operations such as:
- read
- write
- modify
- execute
- delete
44. Windows NTFS vs Linux Permissions
| Feature | Windows/NTFS | Linux/Unix-style |
|---|---|---|
| Basic permissions | ACL-based | Owner/group/others + ACLs |
| User identity | SID | UID |
| Group identity | Group SID | GID |
| Filesystem example | NTFS | ext4 |
| Main permission mechanism | Security descriptors/ACLs | Mode bits + ACLs |
45. Windows Handles
Windows commonly uses handles to refer to operating-system objects.
For example, a process may have handles to:
File Process Thread Registry key Event Mutex Socket/object
Conceptually:
Application ↓ Handle ↓ Windows Object
This is somewhat analogous to Unix file descriptors for certain resources, but Windows handles are a broader object-reference mechanism.
46. Windows Object Manager
Windows uses an object manager to manage many kernel objects.
Examples:
Process Thread File Event Mutex Semaphore Token
Conceptually:
Windows Object Manager │ ├── Process ├── Thread ├── File ├── Event ├── Mutex └── Token
47. Synchronization in Windows
Multithreaded programs need synchronization.
Windows provides mechanisms such as:
- mutexes
- semaphores
- events
- critical sections
- synchronization primitives
Example:
Thread A ──┐ ├── Shared Resource Thread B ──┘
Synchronization prevents problems such as race conditions.
48. Windows Virtualization
Windows supports virtualization technologies.
Examples include:
- Hyper-V
- Windows Hypervisor Platform
- Windows Sandbox on supported editions/configurations
- Virtual Machine Platform
Conceptually:
Windows ↓ Hypervisor ↓ Virtual Machine ↓ Guest OS
49. Windows Containers
Windows also supports container technologies.
Conceptually:
Host Windows ↓ Container Runtime ↓ Container ├── Application ├── Libraries └── Dependencies
Containers share certain host/kernel infrastructure rather than behaving exactly like full virtual machines.
50. Windows Advantages
1. User-friendly GUI
Windows is designed for broad desktop use.
2. Large software ecosystem
Many commercial applications are designed primarily for Windows.
3. Gaming
Strong support for PC gaming.
4. Hardware support
Wide hardware and driver ecosystem.
5. Enterprise integration
Strong integration with:
- Active Directory
- Group Policy
- Microsoft enterprise services
6. Developer tools
Supports:
- Visual Studio
- .NET
- PowerShell
- WSL
- many programming languages
51. Windows Disadvantages
- Proprietary operating system
- Some advanced configuration requires administrative knowledge
- Malware is a major security concern because of its popularity
- Licensing can involve costs depending on edition/use
- Some system components are less transparent than open-source alternatives
52. Windows vs Linux
| Feature | Windows | Linux |
|---|---|---|
| Developer | Microsoft | Open-source community + organizations |
| Kernel | Windows NT family | Linux kernel |
| Source | Mostly proprietary | Open source |
| GUI | Integrated Windows shell | Many desktop environments |
| CLI | CMD / PowerShell | Bash/Zsh/etc. |
| Filesystem | NTFS, exFAT, etc. | ext4, XFS, Btrfs, etc. |
| Permissions | ACL/security descriptors | Mode bits + ACLs |
| Software installation | Store/installers/package managers | Distribution package managers |
| Servers | Widely used | Extremely widely used |
| Customization | Moderate | Very high |
| Gaming | Excellent | Improving |
| Security | Strong security architecture | Strong security architecture |
53. Windows Architecture — Complete Diagram
USER │ ↓ ┌───────────────────┐ │ Applications │ └─────────┬─────────┘ ↓ ┌───────────────────┐ │ Windows APIs │ │ Win32 / Runtime │ └─────────┬─────────┘ ↓ ══════════════ USER MODE ══════════════ │ System Service ↓ ═════════════ KERNEL MODE ════════════ │ ┌─────────┴──────────┐ │ │ Windows Executive Kernel │ │ ├── I/O Manager │ ├── Memory Manager │ ├── Object Manager │ ├── Security │ └── Configuration │ │ ↓ Drivers ↓ HAL ↓ ══════════════════════════════════════ HARDWARE CPU │ RAM │ SSD │ GPU │ NIC
54. Important Windows Components
| Component | Main purpose |
|---|---|
| Windows Kernel | Low-level OS mechanisms |
| Executive | Major kernel-mode OS services |
| HAL | Hardware abstraction |
| Device Driver | Controls specific hardware |
| Windows API | Application interface |
| Registry | Configuration database |
| Task Manager | Process/performance management UI |
| Device Manager | Hardware/driver management |
| Services | Background system/application components |
| File Explorer | File/desktop shell |
| UAC | Privilege elevation control |
| Windows Firewall | Network traffic control |
| Defender | Security/antimalware features |
| NTFS | Common Windows filesystem |
| PowerShell | Shell and scripting environment |
55. Windows Boot Flow — Exam Version
Power ON ↓ UEFI / BIOS ↓ Windows Boot Manager ↓ Windows Boot Loader ↓ Windows Kernel ↓ Drivers + Kernel Initialization ↓ System Processes ↓ Services ↓ Logon ↓ Windows Shell/Desktop
🧠 Exam Revision
Definition
Windows is a family of operating systems developed by Microsoft that manages computer hardware and software resources and provides services and interfaces for users and applications.
Remember the architecture
Application ↓ Windows API ↓ User Mode ↓ Kernel Mode ↓ Executive + Kernel + Drivers ↓ HAL ↓ Hardware
Important concepts
Process → Running program Thread → Execution unit PID → Process identifier Handle → Reference to Windows object Registry → Configuration database NTFS → Major Windows filesystem Driver → Hardware interface UAC → Privilege elevation control Task Manager→ Process/performance management PowerShell → Shell + scripting
🧠 Memory trick
Windows = Process + Memory + File + Device + Security + Network + GUI
And for Windows architecture:
API → Executive/Kernel → Drivers → HAL → Hardware