MCPcopy Create free account
hub / github.com/careercup/ctci / pause

Method pause

java/Chapter 16/Question16_3/Philosopher.java:48–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 }
47
48 public void pause() {
49 try {
50 int pause = AssortedMethods.randomIntInRange(0, maxPause);
51 Thread.sleep(pause);
52 } catch (InterruptedException e) {
53 e.printStackTrace();
54 }
55 }
56
57 public void putDown() {
58 left.putDown();

Callers 2

pickUpMethod · 0.95
chewMethod · 0.95

Calls 1

randomIntInRangeMethod · 0.95

Tested by

no test coverage detected