線程同步機制:
互斥對象
CreateMutex
ReleaseMutex
WaitForSingleObject(該接口帶超時)
事件對象
CreateEvent
SetEvent
ResetEvent
WaitForSingleObject(該接口帶超時)
關鍵代碼段(臨界區)
InitializeCriticalSection
DeleteCriticalSection
EnterCriticalSection
LeaveCriticalSection
信號量
CreateSemaphore
OpenSemaphore
ReleaseSemaphore
WaitForSingleObject(該接口帶超時)另外還有一個等待多個內核對象的接口
WaitForMultipleObjects
進程同步機制:
剪切板
OpenClipBoard
SetClipBoardData
WaitForMultipleObjects
CreatePipe()
命名管道
CreateNamedPipe()
郵槽
CreateMailSlot
套接字socket
文件內存映射
共享內存