()
| 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(); |
nothing calls this directly
no test coverage detected