Merge pthreads