Linux fork, pthread and mpi