Windows NT Architecture - Kernel Mode

Kernel Mode

Windows NT kernel mode has full access to the hardware and system resources of the computer and runs code in a protected memory area. It controls access to scheduling, thread prioritization, memory management and the interaction with hardware. The kernel mode stops user mode services and applications from accessing critical areas of the operating system that they should not have access to; user mode processes must ask the kernel mode to perform such operations on their behalf.

While the x86 architecture supports four different privilege levels (numbered 0 to 3), only the two extreme privilege levels are used. Usermode programs are run with CPL 3, and the kernel runs with CPL 0. These two levels are often referred to as "ring 3" and "ring 0", respectively. Such a design decision had been done to achieve code portability to RISC platforms that only support two privilege levels, though this breaks compatibility with OS/2 applications that contain I/O privilege segments that attempt to directly access hardware.

Kernel mode consists of executive services, which is itself made up of many modules that do specific tasks, kernel drivers, a kernel and a Hardware Abstraction Layer, or HAL.

Read more about this topic:  Windows NT Architecture

Famous quotes containing the words kernel and/or mode:

    After night’s thunder far away had rolled
    The fiery day had a kernel sweet of cold
    Edward Thomas (1878–1917)

    The mode of clearing and planting is to fell the trees, and burn once what will burn, then cut them up into suitable lengths, roll into heaps, and burn again; then, with a hoe, plant potatoes where you can come at the ground between the stumps and charred logs; for a first crop the ashes suffice for manure, and no hoeing being necessary the first year. In the fall, cut, roll, and burn again, and so on, till the land is cleared; and soon it is ready for grain, and to be laid down.
    Henry David Thoreau (1817–1862)