previous
|
start
|
next
Reentrant Locks
aLock = new ReentrantLock();
. . .
aLock.lock();
try
{
protected code
}
finally
{
aLock.unlock();
}
previous
|
start
|
next