Operating Systems · UGC NET: Windows Operating System
Windows Design and System Components
Overview
The Windows NT family, which includes Windows NT, 2000, XP, Vista and later versions, uses a layered hybrid kernel design.
User applications run in user mode, while the core operating-system services run in kernel mode above a hardware-hiding layer called the HAL. The design separates hardware-dependent code, kernel scheduling, executive managers, and user-mode environment subsystems.
For UGC NET, you must know which component does what, how a Win32 call reaches kernel mode, how Windows threads behave, and the standard Windows terms such as Unicode, WOW32, object handles, thread states and hibernate.
Key concepts
- Windows NT architecture is a layered, hybrid kernel design. It is not a pure microkernel because most Executive services, such as memory and I/O management, run in kernel mode.
- Hardware Abstraction Layer (HAL) is a kernel-mode dynamic link library, usually
hal.dll, placed directly above the hardware.
It hides processor- and platform-dependent details: interrupt controllers, DMA, timers, I/O buses, cache and multiprocessor differences. Processor-dependent code is isolated in the HAL. - Kernel is the low-level core in
ntoskrnl.exe. It performs thread scheduling and dispatching, context switching, interrupt and exception handling, trap handling, and low-level synchronization using spinlocks and dispatcher objects. - Executive is the kernel-mode layer above the kernel.
It is a set of managers, not one monolithic block: Object Manager, Process Manager, Memory Manager, I/O Manager, Cache Manager, Security Reference Monitor, Plug and Play Manager, Power Manager, Configuration Manager and Local Procedure Call facility. - Object Manager manages named kernel objects such as files, processes, threads, events, mutexes, semaphores, sections and tokens.
A process refers to an object through a handle; operations are performed through system services on that handle. This is why Windows NT is sometimes called object-oriented at the kernel-object level. - Process Manager creates and terminates processes and threads and maintains process and thread objects.
- Memory Manager provides virtual memory, paging, working sets, section objects and memory protection.
- I/O Manager converts I/O requests into I/O Request Packets (IRPs), manages device drivers, device objects and file systems.
- Security Reference Monitor enforces access checks, uses access tokens, and audits security events.
- Environment subsystems are user-mode processes that provide APIs to applications. The Win32 environment subsystem, with
csrss.exeand the kernel-mode graphics componentwin32k.sys, provides the Windows API environment. - WOW32 means Windows on Windows 32-bit. It is a compatibility environment that runs 16-bit Windows 3.x applications on 32-bit Windows NT-family systems. It is not a Win32 API library and not a file system.
WOW64 runs 32-bit applications on 64-bit Windows. - Important system processes: smss.exe is the Session Manager Subsystem, the first user-mode process started by the kernel; it initialises sessions and starts
csrss.exeandwinlogon.exe.
winlogon.exe handles interactive logon and starts the user shell. services.exe is the Service Control Manager. lsass.exe is the Local Security Authority Subsystem Service and enforces security policy.
csrss.exe is the Client/Server Runtime Subsystem. - Windows 2000 thread states are: Initialized, Ready, Standby, Running, Waiting, Transition and Terminated. Some exam lists omit Initialized and ask for Ready, Standby, Running, Waiting, Transition, Terminated.
- User-level threads are invisible to the kernel and managed by a library. Their major disadvantage is that if one user-level thread makes a blocking system call, the kernel blocks the whole process.
Kernel-level threads are visible to and scheduled by the kernel.
Multithreading models are many-to-one, one-to-one and many-to-many. Many-to-one maps many user threads to one kernel thread; one-to-one maps one user thread to one kernel thread; many-to-many maps many user threads to a smaller or equal number of kernel threads. - Windows character set: Windows 2000 and later native wide-character strings use 16-bit UTF-16 code units.
UGC answers normally say 16-bit Unicode. A UTF-16 code unit is 16 bits; characters above U+FFFF need a surrogate pair. - Windows programming terms: a Win32 GUI application starts at
WinMain, notmain. The compiler produces an.objobject file. MFC means Microsoft Foundation Classes, the C++ class library for Windows programming.
OLE means Object Linking and Embedding, used to embed or link objects such as sound into a Word document. INI files are plain-text initialisation files.
MDI means Multiple Document Interface: a frame window contains an MDI client window, which contains child document windows. - Other exam facts: Windows is a preemptive operating system. Hibernate saves RAM contents to
hiberfil.sysand powers off without closing running applications.
Windows XP and Vista support FAT-16, FAT-32 and NTFS. Windows XP can act in workgroup peer-to-peer mode and domain client-server mode, and transport protocols are loadable drivers.
Windows 2000 is a server-capable system for client-server networks. Windows Vista Disk Management can shrink and extend volumes.
In Active Directory, every object has an access control list, and the schema is the blueprint of all objects in the domain. - Classic batch edit run: in a batch transaction system, the operator supplies the raw transaction file; an edit/validation program reads it and creates the edited transaction file ready for execution.
The key idea is the validation/edit step, not the file extension.
How it works
- Firmware starts the Windows boot manager, which loads the kernel and HAL. The kernel initialises the Executive and then starts
smss.exe, the first user-mode process. smss.execreates sessions and startscsrss.exeandwinlogon.exe; after interactive logon, the user shell and services are started.- An application calls a Win32 API function in a user-mode DLL such as
kernel32.dll,user32.dllorgdi32.dll. - The API call usually reaches
ntdll.dll, which contains user-mode stubs. A privileged operation causes a controlled transition to kernel mode. - The kernel-mode system service dispatcher routes the request to the correct Executive manager.
- The Executive manager may use the kernel, a device driver, or the HAL. Results return to user mode.
Thread scheduling happens after a thread becomes Ready. The kernel dispatcher chooses a thread for each processor; the chosen thread enters Standby, then Running. If it waits for an event it enters Waiting; after the event it becomes Ready or Transition before it can run again.
Drawing the diagram…
Formulas
-
Let a Windows process have threads, with processes and one primary thread per process.
-
Total threads:
-
Primary threads:
-
Non-primary threads:
-
If managers each use kernel services and each service calls HAL routines once per call, total HAL routine calls .
-
Symbols: is thread count of process ; is number of processes; is total threads; is primary threads; is non-primary threads; is number of managers; is kernel services per manager; is HAL routines per service call.
Worked examples
Example 1: match-the-list style. Match: A HAL, B Kernel, C Executive, D Environment subsystem. Functions: i hides hardware differences and DMA; ii schedules threads and handles interrupts; iii contains object, process, memory and I/O managers; iv provides Win32 API environment in user mode.
A matches i; B matches ii; C matches iii; D matches iv. Answer: A-i, B-ii, C-iii, D-iv.
Example 2: thread count. A process has 4 threads and another has 7 threads. Each process has exactly one primary thread. Total threads . Primary threads . Non-primary threads . Answer: 11 total, 2 primary, 9 non-primary.
Example 3: request path. Ramesh clicks Print in a Win32 application.
The application calls a Win32 API; the call passes through a user-mode DLL and ntdll.dll; a system-call transition enters kernel mode; the Executive I/O Manager builds an IRP; the device driver and HAL handle hardware details; control returns to user mode.
Answer: Win32 API → ntdll → kernel transition → Executive I/O Manager → driver/HAL → return.
Example 4: statement type. I: The kernel schedules threads and provides low-level synchronization. II: The Executive contains object, memory and I/O managers. III: The HAL is a user-mode API environment. I and II are true; III is false because HAL is kernel-mode and hardware-hiding. Answer: I and II only.
Example 5: two-step numeric. An Executive has 4 managers. Each manager uses 2 kernel interfaces, and each interface calls 3 HAL routines. If every manager uses every interface once, total HAL routine calls . Answer: 24 HAL routine calls.
Comparison
| Component | Mode | Main responsibility |
|---|---|---|
| HAL | Kernel mode | Hides hardware differences; handles buses, DMA, interrupt controllers, timers |
| Kernel | Kernel mode | Thread scheduling, context switch, interrupts, low-level synchronization |
| Executive | Kernel mode | Object, process, memory, I/O, cache, security, PnP and power management |
| Environment subsystem | User mode | Provides API environments such as Win32 to applications |
| Point | User-level threads | Kernel-level threads |
|---|---|---|
| Visibility | Unknown to kernel | Known and scheduled by kernel |
| Blocking call | One blocking call blocks whole process | Other threads can still run |
| Scheduling | Application/library dependent | Kernel controlled |
| Switching | No kernel privileges required | Requires kernel involvement |
| Main drawback | Poor concurrency on blocking calls | Higher overhead |
| Point | User mode | Kernel mode |
|---|---|---|
| Examples | Applications, environment subsystems, system processes | HAL, kernel, Executive, drivers |
| Privilege | Restricted | Full hardware and privileged instructions |
| Fault effect | Process can crash | System can crash |
| Entry | System calls, exceptions, interrupts | Return to user mode after service |
| Term | Meaning |
|---|---|
| WOW32 | Runs 16-bit Windows 3.x apps on 32-bit Windows |
| WOW64 | Runs 32-bit apps on 64-bit Windows |
| Hibernate | Saves RAM to disk, powers off, keeps running apps |
| Sleep | Low-power state with RAM maintained |
Revision summary
- HAL hides hardware; Kernel schedules; Executive manages; Environment subsystem provides API.
- Windows is a hybrid kernel, not a pure microkernel.
smss.exeis the first user-mode process;winlogon.exehandles logon;lsass.exehandles security.- WOW32 is for 16-bit apps on 32-bit Windows; WOW64 is for 32-bit apps on 64-bit Windows.
- User-level thread blocking call blocks the whole process.
- Windows 2000 thread states: Initialized, Ready, Standby, Running, Waiting, Transition, Terminated.
- Unicode in Windows is normally 16-bit UTF-16 code units.
- Hibernate does not close running applications; it saves RAM to
hiberfil.sys. - Kernel objects are accessed through handles; the Object Manager owns the namespace.
WinMainis the Win32 GUI entry point; MFC is the C++ class library; OLE supports embedded/linked objects.- MFC is the standard class library; a key naming
win.txtis doubtful and should not be treated as a real Windows module.
Previous-year exam insights
- Direct concept questions ask the primary responsibility of HAL, kernel, Executive, Object Manager or environment subsystem; first identify whether the component is user mode or kernel mode.
- Match-the-list questions commonly pair HAL with hardware hiding, kernel with scheduling, Executive with managers, and environment subsystem with user-mode API.
- Statement/assertion questions test whether Windows is a microkernel, whether Executive is modular, and whether kernel mode contains HAL, kernel and Executive.
- Numeric questions count total threads, primary threads, non-primary threads, or manager–kernel–HAL call chains; write the multiplication clearly.
- Sequence questions ask the path of a Win32 call requiring privilege: user API DLL →
ntdll.dll→ kernel transition → Executive manager → driver/HAL. - Common traps: calling HAL the scheduler, calling Executive the user-mode API layer, confusing WOW32 with WOW64, confusing
smss.exewithwinlogon.exe, and forgetting that user-level thread blocking blocks the whole process. - Miscellaneous Windows facts appear as one-liners: 16-bit Unicode, preemptive scheduling, hibernate, thread states, object handles, NTFS/FAT support, Vista volume shrink/extend, INI as text, MDI child windows, OLE.
- A doubtful old key may name virtual memory management as the non-portable portion; standard architecture says the hardware-dependent code is isolated in HAL, so check the layer being described before choosing.
Practice at PARIKSHA
You are ready for the PARIKSHA tests of this sub-topic when you can:
- Name the mode and main function of HAL, kernel, Executive and environment subsystem.
- Explain how a Win32 API call reaches kernel mode and returns.
- Distinguish Object Manager, Process Manager, Memory Manager and I/O Manager.
- List Windows 2000 thread states and explain Standby and Transition.
- Compare user-level and kernel-level threads and state the blocking-call drawback.
- Identify
smss.exe,winlogon.exe,services.exe,lsass.exeandcsrss.exeby role. - Solve thread-count and manager–kernel–HAL numeric questions without missing primary threads.
- Explain WOW32, Unicode size, hibernate, object handles and preemptive scheduling in one line each.
- Handle match-the-list and Statement I/II questions on Windows architecture without mixing layers.
Attempt the sub-topic test first, then the subject test.