项目中使用 线程池来创建线程 继承thread类重写run方法 实现runnable接口 实现callable接口 重写call方法 带返回值 线程池创建线程
实际开发中,最好使用第一种或者第三种
Monitorenter 上锁 Monitorexit 解锁
总结
京公网安备 11010502049817号