1.一個(gè)鎖對應(yīng)一個(gè)AQS阻塞隊(duì)列,對應(yīng)多個(gè)條件變量够颠,每個(gè)條件變量有自己的一個(gè)條件隊(duì)列橱赠。
Lock ===》AQS阻塞隊(duì)列
Lock ===》Condition---->條件隊(duì)列
2.Sync的公平策略
hasQueuePredecessors
1.一個(gè)鎖對應(yīng)一個(gè)AQS阻塞隊(duì)列,對應(yīng)多個(gè)條件變量够颠,每個(gè)條件變量有自己的一個(gè)條件隊(duì)列橱赠。
Lock ===》AQS阻塞隊(duì)列
Lock ===》Condition---->條件隊(duì)列
2.Sync的公平策略
hasQueuePredecessors