Windows System Programming Third Edition [Electronic resources]

Johnson M. Hart

نسخه متنی -صفحه : 291/ 255
نمايش فراداده

  • Chapter 7: Threads and Scheduling

    Subject

    Windows

    UNIX/Pthreads

    Comments

    Thread Mgt

    CreateRemoteThread

    N/A

    TLS

    TlsAlloc

    pthread_key_alloc

    TLS

    TlsFree

    pthread_key_delete

    TLS

    TlsGetValue

    pthread_getspecific

    TLS

    TlsSetValue

    pthread_setspecific

    Thread Mgt

    CreateThread, _beginthreadex

    pthread_create

    Thread Mgt

    ExitThread, _endthreadex

    pthread_exit

    Thread Mgt

    GetCurrentThread

    pthread_self

    Thread Mgt

    GetCurrentThreadId

    N/A

    Thread Mgt

    GetExitCodeThread

    pthread_yield

    Thread Mgt

    ResumeThread

    N/A

    Thread Mgt

    SuspendThread

    N/A

    Thread Mgt

    TerminateThread

    pthread

    _cancel

    pthread

    _cancel is

    safer

    Thread Mgt

    WaitForSingleObject(thread handle)

    pthread_join

    Thread Priority

    GetPriorityClass

    pthread_attr_getschedpolicy, getpriority

    Thread Priority

    GetThreadPriority

    pthread_attr_getschedparam

    Thread Priority

    SetPriorityClass

    pthread_attr_setschedpolicy, setpriority, nice

    Thread Priority

    SetThreadPriority

    pthread_attr_setschedparam

    Note: Pthreads, while a part of all modern UNIX offerings, are available on non-UNIX systems as well.