How to Compile C Programs with POSIX Threads on Linux
On Linux, pthread support comes from the system C library. You normally do not install a package named pthread. Include pthread.h, compile with GCC’s -pthread option, and use the POSIX thread application programming interface in your program. Compile a pthread program with GCC Save this program as pthread_demo.c. Compile and run it with this command. […]
How to Compile C Programs with POSIX Threads on Linux Read More »