- 博客(1)
- 收藏
- 关注
原创 多线程中不用start()而用run()的后果
《Java多线程设计模式》P37页习题 使用run()实际为主线程,没有产生新的线程。 public class Main { public static void main(String[] args) { new PrintThread("Good!").run(); new PrintThread("Nice!").run(); } }
2017-05-03 21:23:36 1839
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人