4 ms·
What does it actually do? Executes the body of the case for the channel which has output?
by justinlilly 16y ago
What does it actually do? Executes the body of the case for the channel which has output?
- teejae 16y agoYes, that's right, and only once. It's like a switch statement, only using inputs instead of fixed cases. It does make sense to have the blocking version, if there's nothing else to do.
- jlouis 16y agoThere is also a fairness point: If more than one channel is available, which one to go is selected in a fair way. This is important so a channel at the top can not flood and monopolize the selective communication primitive.