gcc -o scriptname script.c -pthread