package com.gxx.test; /** * 多线程打印测试 */ public class PrintThreadTest { /** * main方法 * @param args * @throws Exception */ public static void main(String[] args) throws Exception { /** * 锁对象 */ LockObject lockObject = new LockObject(); /** * 线程总数 */ int threadCount = 5; for(int i=0;i