thread_sleep_and_wait
int ret_thread = pthread_create(&thread1, NULL, thread_sleep_and_wait, &data);
ret_thread = pthread_create(&thread2, NULL, thread_sleep_and_wait, &data);