AQS(AbstractQueuedSynchronizer) source code

A few days ago, when comparing the relationship and difference between Synchronized and ReentrantLock, and learning to use Semaphore, CountDownLatch and CyclicBarrier, I found that there is such a synchronizer at the bottom layer. This makes me feel that to learn their underlying principles, I have to learn the underlying principles of AQS itse ...

Added by ghazianibros on Sun, 16 Jan 2022 14:35:53 +0200

Two design methods of synchronous FIFO (counter method and high-order expansion method)

1. What is FIFO          FIFO is a first in first out data buffer, which is widely used in logic design. FIFO design can be said to be a common sense design that logic designers must master. FIFO is generally used to isolate places where the read-write bandwidth on both sides is inconsistent or the bit w ...

Added by Plagel on Thu, 04 Nov 2021 05:10:01 +0200