不使用Thread.join() 测试线程 先上代码: /** * Created by Zero on 2017/8/23. */ public class TestJoin implements Runnable { public static int a = 0; @Override public void run() { for (int i = 0; i < 5; i++) { a = a + 1; } } public static void main(String[] args)…