diff --git a/notes/Java 并发.md b/notes/Java 并发.md index 31eb48c9..f4a45e3c 100644 --- a/notes/Java 并发.md +++ b/notes/Java 并发.md @@ -229,6 +229,7 @@ main() 属于非守护线程。 public static void main(String[] args) { Thread thread = new Thread(new MyRunnable()); thread.setDaemon(true); + thread.start(); } ```