Nguyễn Thị Thảo Sương
New member
How do I run a thread program?
Answer
To compile C program with pthread. h library, you have to put -lpthread just after the compile command gcc thread. c -o thread, this command will tell to the compiler to execute program with pthread. h library.
Answer
To compile C program with pthread. h library, you have to put -lpthread just after the compile command gcc thread. c -o thread, this command will tell to the compiler to execute program with pthread. h library.