Sunday, 10 April 2016

What are the use cases of Barriers ?


Use cases of Barriers

1. Simulators
All the subtasks of a step can be executed in parallel before going to next step.
Each thread solve a sub-part and then merge the results.

2. Exchanger
2 parties involved
One thread fills the buffer while other thread consumes the data from buffer.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.