![]() |
CITS2002 Systems Programming |
← prev | next → | ![]() |
![]() |
|||
Creating and terminating POSIX threadsInitially, each process comprises a single, default thread. All other threads must be explicitly created at run-time.The function pthread_create() creates a new thread and marks it as executable. pthread_create() can be called any number of times from anywhere within your code (including from within running threads). pthread_create() accepts the arguments:
CITS2002 Systems Programming, Lecture 20, p7, 9th October 2023.
|