locks
2 tutorials tagged “locks”.
- Condition Interface in JavaCondition is the Lock version of wait and notify: await, signal and signalAll, with several separate wait sets per lock. Learn it through a bounded buffer.
- Locks in JavaThe Lock interface offers more control than synchronized: ReentrantLock with tryLock and fairness, ReadWriteLock for readers, and StampedLock.