| threaddemo.locking.ReadWriteLockTest
ReadWriteLockTest | public class ReadWriteLockTest extends TestCase (Code) | | Test behavior of Locks.readWrite and PrivilegedLock.
author: Jaroslav Tulach, Ales Novak, Petr Hrebejk, Jesse Glick |
ReadWriteLockTest | public ReadWriteLockTest(String testName)(Code) | | |
setUp | protected void setUp()(Code) | | |
testPostImmediately | public void testPostImmediately()(Code) | | Simple test to execute read access and write access immediately.
|
testSContendedS | public void testSContendedS() throws InterruptedException(Code) | | Tests enterRead while the Lock is contended in S mode by
another thread
|
testSContendedX | public void testSContendedX() throws InterruptedException(Code) | | Tests enterWrite while the Lock is contended in S mode by
another thread
|
testXContendedS | public void testXContendedS() throws InterruptedException(Code) | | Tests enterRead while the Lock is contended in X mode by
another thread
|
testXContendedX | public void testXContendedX() throws InterruptedException(Code) | | Tests enterWrite while the Lock is contended in X mode by
another thread
|
|
|