October 2000
Intermediate to advanced
544 pages
11h 34m
English
Synchronization relies on one thread blocking until another thread has completed a task that uses some sort of shared resource. In Windows CE two blocking functions are commonly used:
WaitForSingleObject: Waits until a single kernel object becomes signaled, or a timeout occurs
WaitForMultipleObjects: Waits until one of several kernel objects becomes signaled, or a timeout occurs
Chapter 5 ("Processes and Threads") showed how WaitForSingleObject could be used to block until a thread or process terminates. However, WaitForSingleObject can also be used to block on a wide range of synchronization objects, such as mutexes, events, and semaphores.
Read now
Unlock full access