Other Thread Synchronization Functions

WaitForSingleObject and WaitForMultipleObjects are the most commonly used functions for performing thread synchronization. However, Windows offers a few more functions that have slight variations. If you understand WaitForSingleObject and WaitForMultipleObjects, you’ll have no trouble understanding how these other functions work. In this section, I’ll briefly introduce some of them.

Asynchronous Device I/O

As you will see in detail in Chapter 10, asynchronous device I/O allows a thread to start a read or write operation without having to wait for the read or write operation to complete. For example, if a thread needs to load a large file into memory, the thread can tell the system to load the file into memory. ...

Get Windows® via C/C++, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.