Windows Architecture Overview

This document provides a high-level overview of the Windows operating system architecture, detailing its core components and how they interact to provide a robust and versatile platform.

Windows Architecture Diagram

Core Concepts

The Windows architecture is built upon a layered design, separating system functionalities into distinct modules to enhance modularity, stability, and maintainability. Key concepts include:

Key Components

Kernel Mode Components

Kernel mode is the privileged execution mode where the operating system has direct access to hardware. Key components residing in kernel mode include:

User Mode Components

User mode is where applications and most operating system services run. It operates with restricted privileges, protecting the kernel and other processes from errors or malicious actions. Key components include:

The Role of the Executive

The Executive sits between the kernel and the user-mode subsystems, providing a set of object-oriented services:

Interaction and Communication

Processes in user mode communicate with kernel mode through system calls. When an application needs to perform a privileged operation (like reading a file), it makes a request to a Win32 API function. This function then triggers a system call, transitioning the processor to kernel mode. The kernel then dispatches the request to the appropriate Executive component and driver to fulfill it. Once the operation is complete, the result is returned to the user-mode application.

"Understanding the layered architecture is crucial for diagnosing performance issues, developing robust drivers, and ensuring system stability."

Further Reading