First implementation of pthreads