Description
enterBarrier() method checks the number of whole lock files and leaveBarrier() method deletes lock file. by the way, sometimes, checking number of lock files and deleting lock file are occurs at the same time by network condition.
Each peer should wait some time for all data synchronization before call leaveBarrier() method and started at the sametime again.