barrier term
synchronization point all threads must reach before any proceed
All N threads call barrier.wait(); none returns until all arrived. Used in parallel computation phases. Different from lock — about coordination, not exclusion.
synchronization point all threads must reach before any proceed
All N threads call barrier.wait(); none returns until all arrived. Used in parallel computation phases. Different from lock — about coordination, not exclusion.