Armazenamento de Mensagens em Trânsito (cont.)
- Solução 2:Utilizar MPI_Sendrecv( ) ? não há deadlock
- Equivalente a MPI_Send( ) seguido de MPI_Recv( )
MPI_Datatype send_type /* in */,
int destination /* in */,
void* recv_buf /* out */,
MPI_Datatype recv_type /* in */,
MPI_Comm recv_tag /* in */,
MPI_Status* status /* out */ )