Gus and Nicolas, Thanx for the replies. I am not an expert in MPI programming and the code we use is an old one. But this is an interesting topic so I will probably read about the deadlock and I may come up with a solution Thanx again Kwstas