摘要: package Thread_test; import charactor.hero_sycn_2; //代码含义:逐渐减少英雄hp,如果英雄hp为0,就等待英雄恢复到大于0之后再继续减少到0, //展示了线程同步和wait和notify进行线程交互 public class test_1 { pu 阅读全文
posted @ 2020-04-22 11:53 Parachute黑喵 阅读(152) 评论(0) 推荐(0) 编辑