with pthreads it should work now