pthread_create(&IDthread ,&attribute , Functionexecute ,(void *)struct );
pthread_t tid; //declaration of thread id
pthread_create(&tid, NULL, &routine, NULL);
//routine is a function that takes in void pointer and returns a void pointer
pthread_join(tid)
#include <pthread.h>
int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
void *(*start_routine) (void *), void *arg);
Compile and link with -pthread.