Thread Completion

In this lesson, you will learn how you can make your program wait for a thread to complete.

We'll cover the following

The example in the previous lesson shows how to create a thread. However, what happens if you want to wait for a thread to complete? You need to do something special in order to wait for completion; in particular, you must call the routine pthread_join().


Get hands-on with 1200+ tech skills courses.