摘要: NEW(A thread that has not yet started is in this state.) 尚未启动的线程处于此状态。 Thread t = new Thread (); RUNNABLE (A thread executing in the Java virtual mach 阅读全文
posted @ 2019-06-14 18:40 喝花茶 阅读(137) 评论(0) 推荐(0) 编辑
摘要: public class SpuriousWakeups { private Object object = new Object(); public int count = 0; public void get(int cnt) { synchronized (object) { if (coun 阅读全文
posted @ 2019-06-14 16:44 喝花茶 阅读(1324) 评论(1) 推荐(0) 编辑