Changed sleep time in multiThreadTryWriteLockTest (#1260)

pull/1275/head
Tung Bui (Leo) 1 year ago committed by GitHub
parent ad496be50c
commit 37c44db64d
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