多线程

1、多线程中,一个对象调用start只能调用一次,调用多次将抛出异常(李兴华视频中说到的)

thread.start();
thread.start();//第二次调用将抛出异常

 2、继承thread类不能实现资源共享

实现runnable接口可以实现资源共享

参看:http://blog.csdn.net/wwww1988600/article/details/7309070

原文地址:https://www.cnblogs.com/crane-practice/p/3650446.html