This sample contains a potential deadlock. The communication pattern is as follows:

Process 0			Process 1
MPI_Buffer_attach()
MPI_Bsend()
MPI_Buffer_detach()
MPI_Barrier()			MPI_Barrier()
             			MPI_Recv()

MPI_Buffer_detach() will block until the message is transferred into the network. There is no guarantee that this is possible because the recipient is not entering its MPI_Recv() until barrier occurs.

Usage Instructions:
System Requirements: