Thread的start方法和run方法的区别

start运行的是当前实例化的Thread对象的线程

而run方法是运行在主线程中的

start方法只运行一次,而run方法是调用几次运行几次

猜你喜欢

转载自blog.csdn.net/dzh145/article/details/89517983