title: pthread thread state
body: <p>Is there a mechanism that I can use to tell if a pthread thread is currently running, or has exited?  Is there a method for pthread_join() that is able to timeout after a specific period of time if the thread has not yet exited?</p>