Know, but still remember #CountDownLatch, CyclicBarrier, Semaphore

The CountDownLatch
condition counts down, triggers the acquisition of the lock
CyclicBarrier
multi-threading condition The number of competitions reaches the limit, then triggers the maximum number of simultaneous competition
Semaphore
allowed to pass

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326361695&siteId=291194637