Compiling A POSIX-Threads Program In order to compile the program, we need to link with the POSIX threads library: gcc pthread_prog.c -o pthread_prog -lpthread We assume that the code itself uses the 'pthread.h' include file, to declare the various POSIX threads APIs.