Create Pthreads detached. Use a pipe to signal thread termination.