ANSWERS: |
||
Q- Take a careful look at the output; is the task's order guaranteed? Try to run the code 3 times.
A- The processes are independent and their termination order is basically not guaranteed.
|
||
Q- What function call can you use instead of the pair ISEND/IRECV?
A- A send-receive operation is very useful for executing a shift operation across a chain of processes:
|
||
|
Try to modify the code in order to call the SENDRECV function instead of the SEND and RECV calls.