Changed sleep time in multiThreadTryWriteLockTest

pull/1260/head
Tung Bui (Leo) 2 years ago committed by GitHub
parent 5251896b36
commit f4847a3fcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,7 +101,7 @@ public class SimpleReadWriteLockTest {
while (true) {
if (simpleReadWriteLock.tryWriteLock()) {
System.out.println(Thread.currentThread() + " -1 get write lock success");
TimeUnit.SECONDS.sleep(5);
TimeUnit.SECONDS.sleep(1);
System.out.println(Thread.currentThread() + " -1 execute done");
simpleReadWriteLock.releaseWriteLock();
countDownLatch.countDown();

Loading…
Cancel
Save