Menu
I Wrote Task Manager — 30 Years Later, the Secrets You Never Knew

I Wrote Task Manager — 30 Years Later, the Secrets You Never Knew

Dave's Garage

254,747 views 8 months ago Save 7 min 6 min read

Video Summary

The creator of Windows Task Manager celebrates its 30th anniversary by unveiling behind-the-scenes details of its development. Originally a side project born from a desire for better system oversight, Task Manager evolved into an essential tool due to its robust design principles: flicker-free resizing, minimal footprint (85KB for NT4 version), and unwavering reliability. The video delves into specific undocumented features, debugging anecdotes, and the philosophy of empowering users with precise system information without interference. An interesting fact is that the original NT4 Task Manager, a mere 85KB, still functions on Windows 11 today.

Short Highlights

  • Task Manager was created on November 10th, 1995, marking its 30th anniversary.
  • The tool originated from a personal need for a Unix-like process viewer (PS, top) in Windows.
  • Key development priorities included dynamic resizing with no flicker, keeping the application extremely small (85KB for NT4 version), and ensuring robustness through multi-threading.
  • The NT4 Task Manager, at 85KB, still runs on Windows 11 today.
  • Undocumented shortcuts like Ctrl+Shift+Esc allow Task Manager to launch even if Explorer is not responding, offering a lifeline in critical situations.

Key Details

The Genesis of Task Manager [00:00]

  • Task Manager was created 30 years ago, on November 10th, 1995, by Dave Plamer, a retired operating systems engineer from Microsoft.
  • The impulse to create it stemmed from a desire for a clear view of running processes, akin to Unix commands like ps and top.
  • Initially, it was a "scrappy little utility" written in the creator's den, born from a "Unixy impulse" to have a system dashboard.
  • The addition of functionality to end tasks and processes was a natural extension of listing them.

    "If you ever wondered what happens when you click end process, you're about to see the receipts."

From Hobby Project to Product [01:35]

  • The tool gained traction in the 1990s Microsoft culture of "dogfooding" (using daily builds of their own code).
  • Dave Cutler, a significant figure, saw the tool, liked it, and gave the green light to integrate it into the product.
  • This involved checking the code into the source tree with "copyright Microsoft" headers, without formal contracts or payment, transforming a hobby into a day job.
  • The Windows 95 UI team initially resisted its inclusion due to concerns about cluttering their interface with "nerd knobs."

    "My hobby was suddenly my day job."

Core Design Principles: Size, Speed, and Stability [03:15]

  • Three overarching priorities guided development:
    • Dynamic resizing with no flicker: Achieved by carefully orchestrating redraws, ensuring a smooth user experience.
    • Keeping it small: The NT4 Task Manager is an astonishing 85KB, achieved by excluding the C++ compiler runtime and manually managing link tables. This version still runs on Windows 11.
    • Robustness: To prevent Task Manager from hanging, every interaction with other system components occurs on a separate thread, ensuring the main window remains responsive.
  • The creator's background in Amiga and Unix influenced the careful, rule-following approach to coding, treating it as a learning process for a new platform.

    "The NT4 task manager is 85K total, including graphics and resources, and it still works on Windows 11 today."

Debugging Kernel Bugs and Unexpected Callers [04:21]

  • A persistent bug causing CPU usage to exceed 100% was encountered.
  • An assertion was instrumented to trip if the sum exceeded 100%, but it was accidentally shipped in a beta build with the creator's home phone number.
  • This led to testers calling at 3:00 a.m. to report the issue, which was eventually traced to a kernel-side accounting bug.
  • The creator still has the same home phone number and jokingly asks people not to call.

    "We shipped a beta build with my home phone number in the assert message so the testers could call me at home at 3:00 a.m."

Flicker-Free Drawing and "Davisms" [05:11]

  • Flicker-free drawing was a personal mission, involving subclassing controls and teaching list views new "manners" for precise repainting.
  • Unique code elements, termed "Davisms," like "Dave's frame wind proc," were incorporated due to the lack of imagination and a long to-do list during development at home.
  • These "Davisms" were not cleaned up before beta lockdown, escaping into the final product.
  • The network page added later was criticized for flickering, a minor annoyance the creator found irksome until fixed.

    "If one cell changes in a giant grid, exactly one tiny rectangle repaints."

Resilience and Undocumented Shortcuts [06:49]

  • Task Manager was designed to be hard to kill and resilient, even in low-memory situations, by booting into a reduced mode.
  • The "Highlander handshake" (Ctrl+Shift+Esc) ensures only one instance runs, and if it becomes unresponsive, Winlogon automatically spawns a new one.
  • Ctrl+Shift+Esc is the canonical launcher and bypasses the need for Explorer to be running, providing a crucial lifeline.
  • Holding Ctrl while clicking "New Task" with a dead shell provides a raw command prompt with administrative privileges.
  • Ctrl+Alt+Shift during launch resets Task Manager settings to defaults.

    "There should only be one, but if the lone immortal goes zombie, another takes its place so that you're never totally stranded."

Customization, Philosophy, and Legacy [08:41]

  • Early aesthetic choices included seven-segment LED meters, inspired by the game Tempest, but they were problematic for localization.
  • The modern mandate remains "don't waste pixels, give me signal," encouraging customization through additional columns like handles, threads, and GDI objects.
  • Philosophically, Task Manager was intended to be a powerful tool, trusting the user's judgment even if it meant potential system instability (like setting a process to real-time priority).
  • Later versions introduced "kid gloves" to prevent accidental blue screens, a trade-off the creator accepts for broader usability.
  • The creator emphasizes the "habit" of accountability, craftsmanship, and user empowerment as the true "most important line of code."

    "Ship a build, make a flight, save a document, and my job is to just fix things and get out of the way."

The 64-Bit Epilogue and Enduring Impact [10:56]

  • The code was written with 64-bit counters and pointer handling in mind from the 32-bit days, making the transition to x64 architecture largely ceremonial and efficient.
  • This foresight ensured the process list remained fast, even benefiting from the Win64 calling convention with more arguments in registers.
  • The video concludes with a summary of key features to use: UI customization, the emergency toolkit (Ctrl+Shift+Esc, Ctrl+Alt+Shift reset, Ctrl+New Task), "Open File Location," and understanding kernel vs. user-mode problems.
  • The creator expresses humility and pride in Task Manager's enduring presence, running on billions of systems monthly and maintaining staying power over popularity.

    "Code written after must-see TV that still runs in core windows, launched by a billion people each month."

Other People Also See