ホーム 暮らし Building an Uncompromising OS: The History of Windows NT from the Perspective of Dave Cutler

Building an Uncompromising OS: The History of Windows NT from the Perspective of Dave Cutler

東條 淳平 東條 淳平 • 更新: • 公開: • 読了約 76 分
目次
na294bacee7f4

*This article is a creative piece composed by AI based on publicly available historical facts and materials. It is not a direct reproduction of statements, contributions, or memoirs by Dave Cutler himself.

If I say that I built Windows NT, the story might sound simple.
However, an operating system is not something that one person designs and completes in their head. Hundreds of engineers write, test, break, fix, and break vast amounts of code again. Only then does a foundation emerge that is almost invisible to the user.
My role was to decide what to allow and what not to allow for that foundation.
I do not allow the mindset that 'as long as it works, it's fine.'
I do not allow designs that only need to be fast on specific models.
I do not allow sacrificing the future solely for the sake of backward compatibility.
Conversely, I do not allow discarding real-world users or existing software just because something is theoretically beautiful.
The history of Windows NT is not the history of Microsoft building a new Windows.
It is the history of attempting to bring a reliable, full-scale operating system into the world of personal computers.
And for me, it was a battle to take the experience and setbacks I accumulated at DEC and complete an ideal system as a real product once again.

1. I was not a Windows person from the start
I did not originally start my career at Microsoft.
My foundation as an operating system designer was formed at Digital Equipment Corporation, or DEC.
DEC was one of the leading companies in the computer industry from the 1960s to the 1980s. In an era when IBM dominated large mainframes, DEC popularized smaller computers that engineers could handle directly.
I was involved there in RSX-11M, a real-time OS for the PDP-11, and VMS for VAX computers.
The experience of designing VMS deeply influenced the later Windows NT.
However, as is often said, Windows NT is not a copy of VMS.
If the same person tackles similar problems based on past experience, it is natural for similar ideas to emerge. Process protection, virtual memory, asynchronous I/O, privilege management, exception handling, and multiprocessor support. These are unavoidable problems when designing a reliable, general-purpose OS.
What is important is not that the individual mechanisms are similar.
What I learned at DEC was the criteria for judging what an OS is.
An OS is not an accessory to applications.
It is an entity that hides hardware complexities, isolates multiple programs, manages resources fairly, and protects the entire system even when failures occur.
If you get the OS design wrong, all the software built on top of it pays the price.
Therefore, you must not compromise on the foundation.
I have held that belief consistently since my time at DEC.

2. Success at DEC and the setback for the next OS
VMS was a success.
But in a company with a successful product, it becomes difficult to create something new.
There are departments that want to protect existing products, and management that wants to protect compatibility with existing customers. When you propose a new architecture, the issue becomes whether it threatens current sales rather than whether it is superior.
I was developing a next-generation computer and OS at DEC's West Coast development center. The codename was PRISM, and the OS-side plan was called MICA.
What we were aiming for was a new system for the future that was not tied to any single generation of hardware.
However, the project was canceled.
It was not because it was technically impossible.
It was stopped by a corporate decision.
For an engineer, this is unbearable.
If it is a design problem, you can fix it. If performance is not met, you can measure it, find the cause, and rewrite the code.
But if the organization decides it does not need the project itself, there is nothing an engineer can do.
I spent a long time at DEC and was blessed with excellent colleagues. However, I needed the opportunity to seriously build a next-generation OS one more time.
That is when Microsoft appeared.
I moved to Microsoft in 1988. The Computer History Museum explains that I joined to lead the development of a portable PC OS that would run on multiple computer architectures. (CHM)
I did not move alone.
Some of the engineers I worked with at DEC also transferred to Microsoft with me.
To build an excellent OS, it is meaningless to just gather numbers.
You need people who can judge designs by the same standards.

3. What Microsoft was missing
Microsoft at the time had already achieved great success.
MS-DOS was widely installed on IBM PCs and their compatibles, and Windows was also gradually strengthening its presence.
However, from my perspective, the DOS-based environment could hardly be called a full-scale operating system.
DOS assumed an era where one user did one task at a time.
Isolation between applications was weak, and if one program made an incorrect memory access, it could involve the entire system. Multitasking was also not a preemptive method with strong protection. The security model was also insufficient for handling a company's important information.
Of course, DOS had its own role.
It was small, inexpensive, and operated on the limited PC resources of the time. Its contribution to creating many software assets and expanding the PC market was significant.
But you cannot move to the next era just by extending that success.
PCs would eventually be used for core business operations.
Connected to networks, handling multiple users and services, and operating 24 hours a day as servers.
In that world, the idea that 'if a problem occurs, just reboot' does not work.
What Microsoft needed was not an OS that extended DOS little by little.
It was a new OS designed from the start with protection, concurrency, networking, portability, and security in mind.
That became what would later be Windows NT.

4. It was not Windows NT at first
The initial name of the project was NT OS/2.
At the time, Microsoft and IBM were jointly developing OS/2 and trying to popularize it as the OS to follow DOS. Our team was also initially positioned to design its next-generation version.
The Smithsonian Institution preserves the design documents for 'Microsoft Windows NT OS/2,' which later developed into Windows NT. (Smithsonian Institution)
However, I did not intend to just slightly improve the existing OS/2 implementation.
Build it new from the kernel.
Separate the parts that depend on the processor.
Create a structure that can support multiple API environments.
Consider multiprocessors from the start.
Place virtual memory and process protection at the center of the system.
And above all, make it portable to other processors that would appear in the future.
We did not intend to bet only on Intel's x86.
The x86 was growing rapidly at the time, but it was not clear which instruction set future high-performance computers would use. Multiple architectures like MIPS, Alpha, and PowerPC were competing.
If you write most of the OS in the assembly language of a specific CPU, you will share your fate with that CPU.
So we wrote most of NT in C and limited the processor-specific parts.
For that purpose, we placed the HAL, or Hardware Abstraction Layer.
The HAL separates hardware-dependent parts such as interrupts, timers, DMA, and multiprocessor control from the rest of the OS.
If you replace the HAL, you can move to different hardware without significantly rewriting the kernel or higher-level subsystems.
Portability is not a feature you can add later.
You cannot achieve it unless you control the dependencies from the moment you start writing code.

5. The design of NT
The inside of NT is not a simple monolith.
At the lowest layer is the hardware, and above that are the HAL and the kernel.
The kernel handles the most basic tasks such as thread scheduling, interrupts, synchronization, and exception handling.
Above that is a series of components called the Executive.
These include the object manager, process manager, virtual memory manager, I/O manager, and security reference monitor.
I emphasized a design that treats resources within the OS as unified objects as much as possible.
Files, processes, threads, events, semaphores, tokens.
Each has a different purpose, but they share common problems of naming, referencing, access rights, and lifetime management.
If you create separate management methods for each individual function, the entire OS becomes a collection of inconsistent mechanisms.
If you place the object manager at the center, you can apply common rules.
Also, in NT, we clearly separated processes and threads.
A process is a container that holds address space and resources.
The unit that is actually executed on the CPU is a thread.
Because one process can have multiple threads, applications can proceed with processing in parallel.
This might seem obvious today.
But the more obvious a design seems, the more you need to incorporate it correctly from the start.
If you try to add threads later, contradictions will arise in libraries, I/O, synchronization, and the user interface.

6. Microkernel or monolithic?
NT was often described as a microkernel OS.
However, strictly speaking, it is not a textbook pure microkernel.
In terms of design, we separated functions and established clear interfaces. However, we did not ignore performance and place all services in independent user-mode processes.
In OS design, the goal is not to follow beautiful classifications.
The goal is to establish the necessary reliability, maintainability, and performance on real hardware.
If frequent context switching and message exchange impair performance, there are functions that should be placed within kernel mode.
Conversely, functions where it is better to isolate failures or functions that realize different OS environments are separated to the user-mode side.
NT is not a fundamentalist design.
It is structured pragmatism.
I did not disregard theory.
I emphasized the responsibility of making theory work as a product.

7. Running multiple OSs on one kernel
Early NT had a concept of running multiple environment subsystems, not just Win32, but also OS/2 and POSIX.
This was a design to prevent the kernel itself from being integrated with a specific application API.
The kernel provides basic functions such as processes, threads, memory, I/O, and security.
On top of that, each subsystem presents its own API or execution environment to the application.
In theory, different types of OS environments can coexist on the same NT Executive.
This was technically rational, but the real market moved in a different direction.
Windows 3.0 succeeded, and applications using the Windows API increased rapidly.
What became important for Microsoft was not the future of OS/2, but connecting the success of Windows to the next-generation foundation.
As a result, the focus of the project shifted from OS/2 to Win32. NT OS/2 became Windows NT.
This is not just a name change.
It was a decision to combine the full-scale OS foundation we were building with the Windows application environment that had already succeeded in the market.
I did not intend to break the design for the sake of compatibility.
However, I did not intend to disregard compatibility either.
No matter how excellent an OS is, it will not spread if there are no applications available to use.
It is easy for engineers to draw an ideal from a blank sheet.
What is difficult is protecting the future structure while taking on past assets.
Later, Gordon Bell evaluated me for understanding the value of legacy and compatibility and delivering NT to a large market. (Source)

8. Compatibility as an enemy and an ally
Windows NT was a completely new design.
However, from the user's perspective, it had to be Windows.
There is a contradiction here.
Some old Windows applications did not assume memory protection. Some accessed hardware directly. Some even relied on undocumented behavior.
If the new OS strictly applied the rules, they would stop working.
But if they didn't work, it would be evaluated as 'the new OS has no compatibility'.
For an OS designer, compatibility can also be the work of preserving past mistakes into the future.
Even so, in the market, compatibility is a value.
We prepared an environment for running 16-bit Windows applications and a virtual DOS machine for DOS applications.
However, you must not mix them with the NT kernel design itself.
Isolate them as a compatibility layer and adhere to the principles of the new 32-bit environment.
This was important.
If you cram new designs and old assets into the same place, you will eventually lose the advantages of both.
The job of NT was not to erase the past.
It was to create a path to the future while isolating the past.

9. Security is not an add-on feature
In NT, we incorporated security into the design from the start.
When a user logs on, the system generates an access token that indicates the user's identification information and privileges.
Access control information is granted to objects, determining who can read, write, execute, and modify them.
Every time a process tries to access something, the security reference monitor checks the token against the rules of the target object.
The important thing is that security is not just password entry on the screen.
Just placing a login screen does not make a secure OS.
After being authenticated, what is that person allowed to do?
Can a process interfere with another process?
Who controls access to files, the registry, devices, and services, and how?
Can audit records be left?
These must be implemented as a consistent model.
You cannot add security just before the product is completed.
It is the same as not being able to replace only the foundation after a house is finished.
NT was also designed with the US government's security evaluation criteria in mind.
To be adopted by companies and government agencies, it had to be explainable as a structure and evaluable, rather than just advertising that it is 'safe'.

10. Blue screen and responsibility
Failures also occur in Windows NT.
If an unrecoverable contradiction is detected in kernel mode, the system stops and displays a so-called blue screen.
It must be an annoying screen for the user.
However, from the OS's perspective, continuing to process in a corrupted state is more dangerous.
The memory management structure might be broken.
It might write incorrect data to the file system.
The security boundary might be lost.
In that state, 'trying to keep running as much as possible' is not reliability.
Detect the failure, stop before the damage spreads, and leave information that can be used to investigate the cause.
This is also part of reliability.
I hated the culture of treating bugs vaguely.
If a problem occurs, reproduce it, identify the cause, and fix it.
'It started working by accident' is not enough.
In system programming, a fix without understanding the cause might just have moved the failure to another place.
In the development of NT, we performed vast amounts of testing, ran daily builds, and tracked failures.
The larger the project, the less you can rely on individual intuition.
You must manage quality as a process.

11. Shipping Windows NT 3.1
In 1993, the first Windows NT was shipped.
The reason the version number was 3.1 and not 1.0 was to keep pace with the Windows 3.1 of the time and show that it was part of the same Windows family.
Internally, it is a completely different OS.
One is Windows based on DOS.
The other is NT with a new 32-bit kernel.
While providing the same screen and API, the structure underneath was vastly different.
The first NT was heavy.
The required memory and storage were a burden on the typical PCs of the time.
The corresponding device drivers were also insufficient.
For individual users seeking high-speed games or perfect compatibility with existing DOS applications, there were few reasons to replace it immediately.
However, that is not a failure.
The first mission of NT was not to run lightly on a minimum-configuration home PC.
It was to provide reliability, networking, security, and portability for enterprise workstations and servers.
The first release is not the finish line.
It was the point where we proved that the architecture could work as a product.
To make a new OS successful, shipping it once is not enough.
You must continuously improve performance, compatibility, and usability while protecting the foundation.

12. Daytona—making performance a reality
The development codename for Windows NT 3.5 was Daytona.
As the name suggests, performance was an important theme.
No matter how correct the design is, if it is slow, users will not use it.
Early NT required large resources in exchange for abstraction, protection, and portability.
We thoroughly reviewed memory usage, boot time, networking, file I/O, and more.
Abstraction has a cost.
But saying that you cannot achieve performance unless you discard abstraction is a designer's defeat.
Measure, identify frequently traveled paths, and improve algorithms and data structures.
If necessary, review how boundaries are placed.
The important thing is to measure, not guess.
It is meaningless to talk about performance problems by saying 'it's probably this part'.
You need a profiler and measurement results.
NT 3.5 improved file sharing, printing, TCP/IP, etc., and became a realistic option for corporate networks. In the subsequent 3.51, compatibility and stability were further increased, and NT began to be recognized not as an experimental next-generation OS, but as a platform that could withstand practical work. (Tom’s Hardware)

13. NT 4.0 and the integration of the user interface
With the success of Windows 95, Windows users became accustomed to the new operation system of the Start menu, taskbar, and Explorer.
However, the screen of NT 3.x was still close to Windows 3.1.
In Windows NT 4.0, we incorporated the Windows 95 user interface into NT.
With this, the appearance of Windows from the user's perspective became unified.
However, in NT 4.0, due to performance judgments, we moved part of the graphics processing and window management to kernel mode.
This might look like a step backward from the perspective of pure failure isolation.
Compared to a structure that can protect the kernel even if user-mode services stop, moving to kernel mode increases the risk that a defect in a graphics driver will stop the entire system.
However, considering the hardware performance and user expectations at the time, speeding up screen processing was important.
OS design is always a trade-off.
Safety, performance, compatibility, complexity, development period.
You cannot maximize only one.
What is important is to decide after understanding what you are sacrificing.
NT 4.0, which appeared in 1996, linked the Windows 95-style interface with the NT foundation and gained a large presence in the corporate server and workstation market. (Tom’s Hardware)

14. Windows 2000—preparation for NT to become mainstream
Windows 2000 was an important turning point where the letters NT disappeared from the product name.
Just because the name disappeared does not mean that NT technology disappeared.
Rather, it is the opposite.
NT was not a special high-end version, but was about to become the foundation of Windows itself.
In Windows 2000, many features such as Plug and Play, power management, Active Directory, Kerberos authentication, file systems, networking, and driver models were enhanced.
This is not just kernel development.
It was an expansion into a platform that manages users, computers, privileges, and servers for the entire company.
As features increase, complexity also increases.
Complexity is one of the greatest enemies of an OS.
If only the number of parts increases, you can deal with it.
The problem is that the dependencies between parts increase.
If you don't know how far it will affect when you change a certain feature, development speed will drop rapidly.
Therefore, you must clarify interfaces and areas of responsibility.
In large-scale systems, just gathering excellent programmers is not enough.
You need to design the boundaries between teams.
The architecture of the code is also the architecture of the organization.

15. Windows XP—two Windows become one
For a long time, there were two Windows at Microsoft.
One was the DOS-based Windows 95, 98, and Me.
The other was the NT-based Windows NT and 2000.
The DOS-based one had excellent compatibility with existing home software and games and was relatively light.
The NT-based one was excellent in stability, protection, security, and corporate management.
This dual-track system cannot continue forever.
Development resources are dispersed, and driver and application support becomes complicated.
And above all, the idea that 'it's for home use, so it's okay if it's unstable' cannot hold as PCs become the center of life and work.
With Windows XP, consumer Windows also migrated to the NT-based kernel.
Here, the meaning of the work I started over a decade ago became clear.
NT did not end as a special Windows for companies.
It became a common foundation supporting home PCs, laptops, workstations, and servers.
The reason Windows XP succeeded is not just because the look became new.
In places users are not directly aware of, there were NT mechanisms such as process protection, virtual memory, preemptive multitasking, and access control.
Excellent foundation technology becomes invisible when it becomes widespread.
Users are not aware of the memory manager.
They don't know the scheduler's algorithm either.
But if they don't work correctly, all the features the user sees will break.

16. Migration to 64-bit
The decision to design NT to be portable from the start continued to have meaning afterward.
We ported NT to multiple CPUs such as MIPS, Alpha, and PowerPC.
In the market, x86 eventually gained an overwhelming position, but the porting work was not in vain.
When you run it on multiple architectures, design assumptions are exposed.
Integer size.
Byte order.
Memory alignment.
Interrupt model.
Cache consistency.
Code that implicitly depended on a specific CPU breaks on another CPU.
Portability is a means of checking design quality as well as being market insurance.
Afterward, AMD proposed AMD64, which extends to 64-bit while maintaining x86 compatibility.
I was also deeply involved in Windows' AMD64 support.
In the migration from 32-bit to 64-bit, it is not just a matter of increasing the address width.
You need to review everything: data types, pointers, ABI, exception handling, debuggers, drivers, and compatible execution environments.
Even so, NT was originally premised on multiple architectures.
It had a structure for migration, unlike an OS that was fully dependent on the coincidence of x86 from the start.
You cannot accurately predict the future.
What a designer can do is create boundaries that can accept future changes.

17. Did NT succeed?
If you measure success by the number of units sold of the first product, NT 3.1 might not be called an overwhelming success.
It did not immediately replace home PCs.
It did not satisfy all performance and compatibility from the start.
However, the success of an OS is not judged by a single release.
Can its design survive while accepting changes for ten, twenty, or thirty years?
Can it adapt to new processors, new networks, new security threats, and new usage forms?
The lineage of NT continues to Windows 2000, XP, Server 2003, Vista, 7, 8, 10, 11, and the current Windows Server.
Of course, the current Windows does not run the 1993 code as it is.
A huge amount of features have been added, and many parts have been rewritten.
Security models, virtualization, power management, graphics, and cloud integration have also changed.
Even so, there is a lineage that continues from early NT in the basic ideas such as processes, threads, virtual memory, objects, I/O, security, and HAL.
Design success does not mean that code is never changed.
It means creating a structure that can continue to be changed.

18. About the name 'New Technology'
It is said that NT stands for New Technology.
In reality, various explanations have been told about the origin of the name.
There are stories that it originated from the development machines used early on or from internal project designations.
For me, the name is not the essence.
Technology is not new forever.
It starts to become old the moment it is shipped.
What is important is not putting the word 'new' in the product name, but having a design that can adapt to new requirements.
The reason NT was new at the time was not just because it was 32-bit.
It lies in the point that it tried to bring the capabilities of an OS, which had been taken for granted in expensive minicomputers and workstations until then, into the rapidly spreading PC world.
Protected address space.
Multi-user security.
Network services.
Multiprocessor.
Multiple architectures.
Making these available on general computers, not huge dedicated machines.
In that sense, NT expanded not only the technology itself but also the market where full-scale OSs could be used.

19. Was my approach too harsh?
I was not known as a gentle manager.
I was not the type to hold back when faced with flawed designs or baseless explanations.
In technical discussions, titles mean nothing.
Is the code correct?
Is the design consistent?
Is the performance measured?
Can the cause of the failure be explained?
That is all that matters.
Demanding requirements can be exhausting for people.
I have no intention of glorifying long working hours or so-called 'crunches' in large-scale development.
Fatigued engineers make mistakes.
Unsustainable development compromises quality in the long run.
On the other hand, when designing the foundation of an OS, you cannot ship with 'mostly correct'.
A single race condition causes rare data corruption.
A single missing boundary check leads to the seizure of system privileges.
A single driver error brings millions of machines to a halt.
Rigorousness is not a personality trait.
It is a responsibility toward what you are handling.
However, being rigorous is not the same as being disrespectful to others.
Looking back, there were better ways to communicate and better ways to protect the team's sustainability.
Being technically correct does not mean an organization functions correctly.
This, too, is a lesson to be learned from large-scale development.

20. The true legacy of Windows NT
The history of Windows NT can be told as a history of Microsoft competing with IBM, UNIX, Novell, Sun, and others.
It can also be explained as the expansion of market share and the entry into enterprise servers.
However, from my perspective, the core of NT is much simpler.
If you want to build a system that will be used for a long time, you must invest in the foundation first.
In the early stages of a product, that investment looks excessive.
A layer for portability.
Unified object management.
Strict access control.
Separation of processes and threads.
Asynchronous I/O.
Exception handling.
Debuggers and diagnostic mechanisms.
These are harder to advertise than new features on the screen.
Users do not buy an OS at a store because it has a superior scheduler.
That is why companies want to put off investing in the foundation.
But when a product succeeds and scales, early design decisions determine everything.
If you keep piling features on a weak foundation, development speed drops, failures increase, and security fixes create new compatibility problems.
Conversely, if there are boundaries that assume change, you can move to the next generation without throwing everything away.
NT is not a perfect OS.
There is no such thing as a perfect OS.
Every design contains the constraints of its time and errors in judgment.
What is important is having a structure that allows you to correct those errors.

21. Reflections looking back now
When we started development in 1988, no one could accurately predict today's computing environment.
Billions of computers connected to a network.
Massive numbers of virtual machines running in the cloud.
Laptops having multiple cores and massive memory.
GPUs being used for general-purpose computing and AI.
Nation-state actors searching for OS vulnerabilities.
It was impossible to write these futures into the design in detail.
But even if you cannot predict the future, you can prepare for change.
Isolate hardware-dependent parts.
Define the boundary between user mode and kernel mode.
Manage resources as objects.
Consistently verify access rights.
Assume parallel execution from the start.
Do not hide failures; make them detectable.
Such principles work beyond specific product generations.
Building Windows NT did not just mean completing one OS.
It meant creating a starting point for future Windows to keep changing.
I did not design a flashy user interface.
I did not draw the icons that people see every day.
Much of what we built is behind the screen.
As long as it is working properly, no one notices it.
But that is fine.
The foundation of an operating system does not exist to attract attention.
It exists to ensure that applications run, data is protected, multiple processes do not collide, and failures do not spread to the whole system.
A superior OS does not get in the way of the user's work.
A superior foundation makes you forget its own existence.
What Windows NT ultimately achieved was not creating a special high-end OS.
It was bringing the concepts of reliability and protection, which were once only available on specialized computers, to everyday computing.
I did not try to build something trendy.
I tried to build something that would not break easily, was explainable, and could withstand the future.
That is Windows NT.
And if there is one thing I should be most proud of as a designer, it is not that the code I wrote first remains.
It is that on the foundation we established, other generations of engineers have rewritten the code, responded to new requirements, and still managed to move the system forward.
Software is never finished.
As long as it is used, it will continue to be changed.
Therefore, the designer's job is not to fix the future.
It is to leave room within the current structure for future engineers to make changes.

同じカテゴリの記事

東條 淳平

スポーツと芸能が交差する話題を担当。大会公式記録と所属先の発表を突き合わせ、数字は必ず出典付きで扱います。

おすすめの関連記事