Microsoft Windows CE 3.0  

Synchronizing Processes and Threads

This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

In an OS where several threads run concurrently, it is important to be able to synchronize the activities of various threads. Windows CE provides several synchronization objects that enable you to synchronize a thread's actions with those of another thread. These objects include: critical sections, mutexes, events and semaphores. Additionally, you can use interlocked functions to synchronize a thread.

Regardless of the synchronization method that is used, a thread synchronizes itself with another thread by releasing a synchronization object and then entering a wait state. The synchronization object tells the OS what special event has to occur before the thread can resume execution. When the event occurs, the thread is again eligible to be scheduled for CPU time. Once it is scheduled, the thread continues executing. The thread has now synchronized its execution with the occurrence of the event.

 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.