Merge branch 'master' of https://github.com/CyC2018/CS-Notes
This commit is contained in:
commit
72acce764f
|
@ -229,6 +229,7 @@ main() 属于非守护线程。
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Thread thread = new Thread(new MyRunnable());
|
Thread thread = new Thread(new MyRunnable());
|
||||||
thread.setDaemon(true);
|
thread.setDaemon(true);
|
||||||
|
thread.start();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user