()
| 33 | } |
| 34 | |
| 35 | private static void cpuSpike() { |
| 36 | long startTime = System.currentTimeMillis(); |
| 37 | |
| 38 | while (System.currentTimeMillis() - startTime < 500) { |
| 39 | cpuLoad(); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | public static void main(String[] args) throws Exception { |
| 44 | Thread thread = new Thread(CpuLoad::normalCpuLoad); |
no test coverage detected