Passing Arguments to Threads
result = pthread_create(&thread_ID,
(pthread_attr_t *)NULL, myThreadFcn, (void *)&fd);
printf("Error: %s\n", strerror(result));
we can pass any variable (including a structure or array) to our thread function; assumes thread function knows what type to expect