main方法也是一个线程,所以之前的线程都是基于多线程机制,在main方法中通过对象.方法调用的一切代码都是主线程。 来源:https://www.cnblogs.com/chr1978/p/12556623.html 标签 线程