Microsoft Windows Kernel Architecture Flashcards
Operating systems are fundamentally an abstraction layer between users and physical components:
- Simplification of interactions
- Ability to replace components, at times including emulation
- Most modern systems provide different types of multiplexing and protective mechanisms
- Requirements vary considerably: General-purpose systems value responsive multi-programming, transaction processing can be accomplished with batch programming and real-time systems require provable response-time boundaries
Core Operating System Functions - Scheduling:
- Prioritisation, fairness
* Deadlock avoidance
Core Operating System Functions - Memory Management:
- Protection of concurrent programs, self-protection
* Virtual memory abstraction
Core Operating System Functions - Storage Management:
Persistent storage provisioning in a consistent abstraction
Core Operating System Functions - I/O Management:
- Abstraction of hardware properties
* Synchronization and concurrency management
Most modern operating systems use a modular or layered construction. Privileges are also used in different modes or rings, Windows uses…
Ring based approach, but with only two rings active. Legacy of the original multi-platform design : MIPS, PPC. Only supported two modes. Important ramifications for security
While subsequent generations have embellished the architecture of Windows NT…
The current generation (Win8) takes a step back an uses a more minimal (MinWin) core. Several subsystems have since been added, but some also have been depreciated
The Universal Windows Platform app mechanism introduces a parallel user mode layer; on desktop platforms the Win32 layer will be retained. UAP is a…
Superset of the earlier Windows 8, RT and WinRT user-mode runtime environment based in part of the Metro interface. UAP Applications are sandboxed and restricted to only a subset of the Win32 and COM APIs either via a Windows Runtime component or the Platform Invocation Services
The Hardware Abstraction Layer (HAL) provides an abstraction to upper kernel layers that insulates particulars of given hardware platforms, primarily:
- Multi-processor, multi-core and independent execution units
- Interrupt controllers
- Low-level I/O interfaces
Layered between the HAL and Executive is the Kernel, which was the core of the original microkernel design:
Layered between the HAL and Executive is the Kernel, which was the core of the original microkernel design:
Executive Components - Object Manager:
Windows uses objects to encapsulate most resources, their creation, destruction, control and protection is handled through the Object Manager, which also provides name spaces
Executive Components - Objects are divided into Administrative Elements:
Name, handle and reference count, type information
Executive Components - Kernel Objects:
Owned by the kernel
Executive Components - Executive Objects:
Owned by the executive, if it is not an outright kernel object
Executive Components - Configuration Manager:
Responsible for implementation and management of Registry database
Executive Components - Advanced Local Procedure Call:
Message passing interface between client and server processes, also used as local transport for RPC calls
Executive Components - I/O Manager:
Provides device-independent I/O and is the interface to layered device driver
Executive Components - Cache Manager:
Retains recently referenced file I/O in memory and manages deferred writing of cache content, cache replacement. Tied closely to the Memory Manager
Executive Components - Process Manager:
Creates and terminates threads and processes, mainly as a layered service on top of the microkernel
Executive Components - Memory Manager:
Implements Virtual Memory Management, including providing virtual address spaces, fie mapping, locking of physical memory and shared memory
Executive Components - Power Manager:
Coordinates power events and generates notifications to device drivers and can put CPU to sleep in idle conditions
Executive Components - Plug & Play:
Determines types of drivers required to support devices and loads installs driver packages. Also assigns resources and must handle system notifications of device addition or removal
Executive Components - System Reference Monitor:
Enforces security policies on the local computer system, performs run-time object protection and auditing, communicates with user-mode components
Executive Components - Kernel-Mode Driver Contains Windows Subsystems - GDI
Abstraction layer for graphics interfaces (2D)
Executive Components - Kernel-Mode Driver Contains Windows Subsystems - DXG:
Provides a wrapper and access interface for other services via a common interface (DDI)
Executive Components - Kernel-Mode Driver Contains Windows Subsystems - USER:
Provides window manager and graphics services including keyboard and mouse, messaging services