redis Distributed Lock
This commit is contained in:
parent
84b213ec4f
commit
4d28a6f95f
@ -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();
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user