摘要:
#1.线程间的通信 线程间通信 生产者+消费者 通知等待唤醒机制 多线程编程模板 判断 干活 通知 判断需使用while,以防止中断和虚假唤醒(见java.lang.Object的API) A thread can also wake up without being notified, inter 阅读全文
摘要:
##1 八锁现象 问题一:标准访问,先打印短信还是邮件? public class Lock_8_1 { public static void main(String[] args) throws Exception { Phone phone = new Phone(); new Thread(( 阅读全文