2021年12月22日
摘要: 今天试了试线程同步,运行代码发现和synchronized关键字介绍的不太一样。 起初代码是这样: public class Test{ public static void main(String args[]){ Thread cat = new Thread(new sayhello()); 阅读全文
posted @ 2021-12-22 16:28 小白成长变大神 阅读(213) 评论(0) 推荐(0)