메뉴 건너뛰기


Developer > Application

Chapter 7: Threads and Scheduling

SubjectWindowsUNIX/PthreadsComments
Thread MgtCreateRemoteThreadN/A 
TLSTlsAllocpthread_key_alloc 
TLSTlsFreepthread_key_delete 
TLSTlsGetValuepthread_getspecific 
TLSTlsSetValuepthread_setspecific 
Thread MgtCreateThread, _beginthreadexpthread_create 
Thread MgtExitThread, _endthreadexpthread_exit 
Thread MgtGetCurrentThreadpthread_self 
Thread MgtGetCurrentThreadIdN/A 
Thread MgtGetExitCodeThreadpthread_yield 
Thread MgtResumeThreadN/A 
Thread MgtSuspendThreadN/A 
Thread MgtTerminateThreadpthread_cancelpthread_cancel is safer
Thread MgtWaitForSingleObject(thread handle)pthread_join 
Thread PriorityGetPriorityClasspthread_attr_getschedpolicy, getpriority 
Thread PriorityGetThreadPrioritypthread_attr_getschedparam 
Thread PrioritySetPriorityClasspthread_attr_setschedpolicy, setpriority, nice 
Thread PrioritySetThreadPrioritypthread_attr_setschedparam 
Note: Pthreads, while a part of all modern UNIX offerings, are available on non-UNIX systems as well.