A bucket is also a synchronization barrier for multiple processes.
bucket也是一个用于多进程的同步barrier。
The Barrier class is used to create synchronization points for multi-phase operations.
Barrier类的作用是在多个阶段的操作之间创建同步点。
At this time the internal counter is reset to the initially provided total number of processes, making the Barrier instance available for reuse in the next round of synchronization.
这时,内部的计数器被重新设置回最初提供的进程总数,从而使得Barrier实例可以在下一轮同步中重复使用。
应用推荐