Changes between Initial Version and Version 1 of Ticket #27
- Timestamp:
- 08/20/09 19:53:44 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27 – Description
initial v1 1 1 To do a message-passing data exchange, you need to send first, receive second. Otherwise deadlock will ensue. In diffusion example, the receives happen first (check for this in other examples as well): 2 2 3 {{ 3 {{{ 4 4 void exchange_ghost_cells() { 5 5 if(left >= 0) send(v[1], left, 0); … … 10 10 if(left >= 0) recv(v[0], left, 0); 11 11 } 12 }} 12 }}} 13 I guess in this case it won't deadlock because of the boundaries, but it will force sequentialization.
