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