Blog

lock

  • Synchronizing Threads with Java Locks

    Synchronizing Threads with Java Locks

    Java locks often supersede synchronized blocks and methods by allowing to back out from the synchronization attempt. This post shows how to use the feature, and demonstrates some other basic concepts, like the lock fairness and reentrant…