Pthread

Creator
Creator
Seonglae Cho
Created
Created
2021 Dec 9 1:17
Editor
Edited
Edited
2023 Oct 24 7:32
Refs
Refs
libc
Thread

POSIX Threads

병렬적으로 작동하는 소프트웨어의 작성을 위해서 제공되는 표준 API
모든 유닉스 계열 POSIX 시스템에서, 일반적으로 이용되는 라이브러리
Pthread APIs
  • Creating and reaping threads.
    • pthread_create(), pthread_join()
  • Determining your thread ID
    • pthread_self()
  • Terminating threads
    • pthread_cancel(), pthread_exit()
  • Synchronizing access to shared variables
    • pthread_mutex_init()
    • pthread_mutex_[un]lock()
    • pthread_cond_init()
    • pthread_cond_[timed]wait()
    • Many more…
 
 
 
 

Recommendations