|
@@ -11,7 +11,7 @@ public abstract class Mutex {
|
|
|
int rdIter = ThreadLocalRandom.current().nextInt(minIter, maxIter + 1);
|
|
|
|
|
|
System.out.println("^");
|
|
|
- for (int k = 0; k < maxIter; k++) {
|
|
|
+ for (int k = 0; k < rdIter; k++) {
|
|
|
System.out.println(mark);
|
|
|
Thread.sleep(msWait);
|
|
|
}
|