publicReentrantLock() { sync =newNonfairSync(); } /** * Creates an instance of {@code ReentrantLock} with the * given fairness policy. * 如果fair為true則構造是一個公平鎖 * @param fair {@code true} if this lock should use a fair ordering policy */ publicReentrantLock(booleanfair) { sy...