How do I run a thread program?

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.
 

Tìm kiếm

Back
Top