07.03.2013 Views

Multithreading Multi-Threaded Programming

Multithreading Multi-Threaded Programming

Multithreading Multi-Threaded Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using Events for Thread Synchronization<br />

} Event<br />

} An event is one type of kernel object that Windows<br />

provides for thread synchronization. (Processes and<br />

threads are also kernel objects.)<br />

} An event is identified by a unique 32-bit handle<br />

within a process. It can be identified by name, or its<br />

handle can be duplicated for sharing among<br />

processes.<br />

} An event can be either in the signaled (or true)<br />

state or in the unsignaled (or false) state.<br />

25<br />

Advanced Windows Network <strong>Programming</strong><br />

11/11/12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!