Skip to content
Browse files

Make philosophers eat for 100 ms

An attempt to make deadlock reasonable likely on a modern machine.
  • Loading branch information...
1 parent 90aaa01 commit 74882d07a3d8ff4b27bbfb02e1d76222e7eca9ad @jrosdahl jrosdahl committed Dec 17, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/philosophers/Philosopher.java
View
2 examples/philosophers/Philosopher.java
@@ -13,7 +13,7 @@ public Philosopher(String name,
}
public void run() {
- long endTime = System.currentTimeMillis() + 2000;
+ long endTime = System.currentTimeMillis() + 100;
while (endTime > System.currentTimeMillis()) {
pickUpSticksAndEat();
}

0 comments on commit 74882d0

Please sign in to comment.
Something went wrong with that request. Please try again.