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

Method methodA

java/Chapter 16/Question16_6/Foo.java:22–26  ·  view source on GitHub ↗
(String threadName)

Source from the content-addressed store, hash-verified

20 }
21
22 public synchronized void methodA(String threadName) {
23 System.out.println("thread " + threadName + " starting: " + name + ".methodA()");
24 pause();
25 System.out.println("thread " + threadName + " ending: " + name + ".methodA()");
26 }
27
28 public void methodB(String threadName) {
29 System.out.println("thread " + threadName + " starting: " + name + ".methodB()");

Callers 1

runMethod · 0.80

Calls 1

pauseMethod · 0.95

Tested by

no test coverage detected