add usage of pthread_create