Chapter 4 Synchronization

4.1 Introduction

In a multitasking environment, it is sometimes necessary to coordinate the execution of multiple processes or multiple threads within a process. Win32 provides a set of synchronization objects for this purpose. These objects give threads a mechanism for signalling to each other, enabling the development of reliable and robust multithreaded applications. The signals can be used to indicate that an event has occurred or that a shared resource is being used. This chapter describes how to create and use Win32 synchronization objects.

The following topics are related to the information in this chapter:

Shared memory

Shared resources

Processes, threads, and sessions