Wednesday, 14 August 2013

Why do we need a lock to be reentrant?

Why do we need a lock to be reentrant?

I understand (somewhat) the features of the jdk 5 ReentrantLock here
But why we would want a 're-entrant' lock? i.e if a Thread already has the
lock on an Object, why would it need to acquire it again?

No comments:

Post a Comment