redis Distributed Lock

This commit is contained in:
LingZhaoHui 2022-01-09 22:48:25 +08:00
parent 84b213ec4f
commit 4d28a6f95f
2 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class RedisDistributedLockTest {
} }
}; };
System.out.println("------------------开始--------------"); System.out.println("------------------开始--------------");
for (int i = 0; i < 100; i++) { for (int i = 0; i < 10; i++) {
Thread t = new Thread(runnable); Thread t = new Thread(runnable);
t.start(); t.start();
} }