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

Method pause

java/Chapter 16/Question16_6/Foo.java:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 }
13
14 public void pause() {
15 try {
16 Thread.sleep(1000 * 3);
17 } catch (InterruptedException e) {
18 e.printStackTrace();
19 }
20 }
21
22 public synchronized void methodA(String threadName) {
23 System.out.println("thread " + threadName + " starting: " + name + ".methodA()");

Callers 2

methodAMethod · 0.95
methodBMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected