However you would more typically just use
For receiving,
However, you would more typically just use
However, if it is important that both labs receive it "at the same time", then call labBarrier after doing the labSend(), and have labs 2 and 3 call labBarrier() before doing the labReceive(). This is typically not needed unless you are accessing a shared resource such as arbitrating whose turn it is to write to a device or particular section of a file.
Best Answer