So, my question is in C: what are the fundamental differences (possibly pros and cons) using the pthread barrier (init and wait..etc) compared to using pthread Join the loop.
So to speak, I created 10 threads in the loop, and then in the place where I want the barrier, I set the loop to do Join for all threads. Wouldn't that act as a barrier?
Please clarify. Thank!
source
share