MCPcopy Create free account
hub / github.com/crossoverJie/JCSprout / main

Method main

src/main/java/com/crossoverjie/actual/TwoThread.java:30–42  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

28 private final static Lock LOCK = new ReentrantLock();
29
30 public static void main(String[] args) {
31 TwoThread twoThread = new TwoThread();
32
33 Thread t1 = new Thread(new OuNum(twoThread));
34 t1.setName("t1");
35
36
37 Thread t2 = new Thread(new JiNum(twoThread));
38 t2.setName("t2");
39
40 t1.start();
41 t2.start();
42 }
43
44 /**
45 * 偶数线程

Callers

nothing calls this directly

Calls 2

setNameMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected