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

Method run

src/main/java/com/crossoverjie/concurrent/Volatile.java:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 private static volatile boolean flag = true ;
15
16 @Override
17 public void run() {
18 while (flag){
19 }
20 System.out.println(Thread.currentThread().getName() +"执行完毕");
21 }
22
23 public static void main(String[] args) throws InterruptedException {
24 Volatile aVolatile = new Volatile();

Callers

nothing calls this directly

Calls 2

getNameMethod · 0.80
stopThreadMethod · 0.80

Tested by

no test coverage detected