
199
CHAPTER
7 Threads and
Scheduling
The thread is Windows’ basic unit of execution, and a process can contain
multiple, independent threads sharing the process’s address space and other
resources. Chapter 6 limited processes to a single thread, but there are many
situations in which multiple threads are desirable. This ch
apter describes and
illustrates Windows thread management. The example programs use threads to
simplify program design a nd to enhance performance. Chapter 8 continues with a
description of synchronization objects a nd the impact, positive and negative, of
threads on performance, and Cha
pter 9 examines performance tuning and trade-