Add a thread C program