MCPcopy Create free account
hub / github.com/LisenCoding/cangku / run

Method run

boot/src/main/java/com/thread/MyThreadMethod.java:7–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 */
6public class MyThreadMethod extends Thread {
7 public void run() {
8 while (!this.isInterrupted()) {// 线程未中断执行循环
9 try {
10 Thread.sleep(5000); //每隔2000ms执行一次
11 } catch (InterruptedException e) {
12 e.printStackTrace();
13 }
14
15// ------------------ 开始执行 ---------------------------
16// System.out.println("线程执行中:" + System.currentTimeMillis());
17 }
18 }
19}

Callers 15

mFunction · 0.80
drainQueueFunction · 0.80
drainQueueFunction · 0.80
renderColorInputFunction · 0.80
renderTextFieldFunction · 0.80
renderUrlInputFunction · 0.80
gFunction · 0.80
axFunction · 0.80
hFunction · 0.80
PkFunction · 0.80
makeEditSwitchFunction · 0.80
exitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected