These systems lock files so that only one developer has write access to the central repository at a time.
这些系统对文件进行加锁,这样在某个时间只有一个开发人员对中心仓库具有写入权限。
When multiple threads ask for the same lock at the same time, one wins and acquires the lock, and the others block.
在多个线程同时请求同一个锁时,会有一个线程获胜并得到锁,而其他线程被阻塞。
For “Lock [AQS@135]”, it contends in one place, showing contention count, contention time, and full stack back trace of the contention.
对于“Lock [AQS@135]”,它在一个程序位置出现竞争,显示了竞争的次数,时间和竞争时刻的线程调用栈。
应用推荐