Top "Reentrantlock" questions

ReentrantLock is a Java mutex class.

Why use a ReentrantLock if one can use synchronized(this)?

I'm trying to understand what makes the lock in concurrency so important if one can use synchronized (this). In the …

java multithreading concurrency synchronize reentrantlock
Spring Web Flow LockTimeoutException

We are using Spring Web Flow (2.0.9) in the Weblogic 10 clustured environment. And in production we are getting a lot of …

spring-webflow weblogic-10.x reentrantlock
Unlocking lock owned by another thread java

I have a LockManager that manages the locks of several threads. Sometimes the threads are bad boys, and I have …

java locks reentrantlock
Actual use of lockInterruptibly for a ReentrantLock

What do you actually use for this method lockInterruptibly? I have read the API however it's not very clear to …

java concurrency locking reentrantlock
How to set/get string in Java safely?

I have read Java String class is immutable and thread-safe but I am still confused about whether the reference assignment …

java string thread-safety immutability reentrantlock
How to create fair lock to solve starvation in java?

I want to create fair lock so that each thread was given a lock one after the other regardless of …

java concurrency reentrantlock
can anyone explain how to use Reentrant Lock in java over Synchronized with some best examples

When I run the example class at http://javarevisited.blogspot.in/2013/03/reentrantlock-example-in-java-synchronized-difference-vs-lock.html, I'm seeing the same behavior as with …

java multithreading concurrency reentrantlock