Tried added pthreads.... i think fork might be better though