flock_thread
if (pthread_create(&t[0], NULL, flock_thread, &cfd) != 0)
if (pthread_create(&t[1], NULL, flock_thread, &cfd) != 0)