Lexicon Entry
Thread
The basic unit of CPU utilization and execution within a process. Threads within the same process share the same memory space and resources, but maintain their own stack and register states.
Related Knowledge & Cross-References
Windows Threads and Synchronization: Win32 API and NT Primitives
A deep dive into Windows multithreading. Learn how to manage threads with CreateThread, synchronize using SRWLocks, and build high-performance blocking mechanisms with WaitOnAddress (the Windows futex).
macOS Execution: Mach Tasks vs. BSD Processes
A deep dive into the Darwin/XNU kernel. We explore the architectural divide between Mach Tasks and Threads, and how standard BSD POSIX APIs like fork() are illusions layered over Mach primitives.
The Anatomy of Execution: Processes, Threads, and Memory Isolation
A conceptual deep dive into what it means for code to execute. We explore the fundamental differences between a process (a resource container) and a thread (an execution unit), and how the OS isolates them.