메뉴 건너뛰기


Developer > Application

Chapters 810: Thread Synchronization

SubjectWindowsUNIX/PthreadsComments
Synch: CritSecDeleteCriticalSectionUse mutexes to emulate critical sections. Some systems provide proprietary equivalents.C library is not applicable
Synch: CritSecEnterCriticalSectionC library is not applicable
Synch: CritSecInitializeCriticalSection 
Synch: CritSecLeaveCriticalSection 
Synch: EventCloseHandle (event handle)pthread_cond_destroy 
Synch: EventCreateEventpthread_cond_init 
Synch: EventPulseEventpthread_cond_signalManual-reset event
Synch: EventResetEventN/A 
Synch: EventSetEventpthread_cond_broadcastAuto-reset event
Synch: EventWaitForSingleObject (event handle)pthread_cond_wait 
Synch: EventWaitForSingleObject (event handle)pthread_timed_wait 
Synch: MutexCloseHandle (mutex handle)pthread_mutex_destroy 
Synch: MutexCreateMutexpthread_mutex_init 
Synch: MutexReleaseMutexpthread_mutex_unlock 
Synch: MutexWaitForSingleObject (mutex handle)pthread_mutex_lock 
Synch: SemCreateSemaphoresemget 
Synch: SemN/AsemctlWindows does not directly support all these options
Synch: SemOpenSemaphoresemget 
Synch: SemReleaseSemaphoresemop (+) 
Synch: SemWaitForSingleObject (semaphore handle)semop (-)Windows can wait for only one count