Wednesday, 28 August 2013

How long a thread wait while other thread accessing synchronized block?

How long a thread wait while other thread accessing synchronized block?

Threads can wait until other threads release lock which accessing
synchronized block. I would like to know how long a thread can wait while
other thread accessing synchronized block? and when will it come to know
that the other thread released lock?

No comments:

Post a Comment