MCPcopy Create free account
hub / github.com/TanaStudy/Java-Study / run

Method run

8. Demo/Java/src/main/Java/单例模式/Singleton.java:24–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 for(int i = 0; i < 100; i++){
23 new Thread(new Runnable() {
24 @Override
25 public void run() {
26 System.out.println(Thread.currentThread().getName() + " " + Singleton.getInstance().hashCode());
27 }
28 }).start();
29 }
30 }

Callers

nothing calls this directly

Calls 2

getInstanceMethod · 0.95
getNameMethod · 0.45

Tested by

no test coverage detected