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

Method second

java/Chapter 16/Question16_5/Foo.java:35–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 public void second() {
36 try {
37 sem1.acquire();
38 sem1.release();
39 System.out.println("Started Executing 2");
40 Thread.sleep(pauseTime);
41 System.out.println("Finished Executing 2");
42 sem2.release();
43 } catch (Exception ex) {
44 ex.printStackTrace();
45 }
46 }
47
48 public void third() {
49 try {

Callers 1

runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected