Discover the answers to your questions at Westonci.ca, where experts share their knowledge and insights with you. Get the answers you need quickly and accurately from a dedicated community of experts on our Q&A platform. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our platform.

What does the 'pthread_exit() function do in a Pthreads program?
a. It initializes thread attributes
b. It terminates the calling thread
c. It terminates the main thread
d. It creates a new thread