摘要
分析Java多线程同步应用中可能出现的问题,以“生产者-消费者”这一经典进程同步问题为例,对这类问题的一般解决方法及其弊端进行了综合论述,提出了交互表达式实现多线程同步的思想,介绍了用它来处理此类同步问题的基本方法,并与前述方法比较。
This paper narrates the potential problems of Java multithreading by giving an example of classical producer-customer problem, then discusses its usual settlements and disadvantage,at last introduces the theory of using Interaction Expressions to settle synchronization, analyses its merits in comparison with the former way.
出处
《现代计算机》
2005年第6期69-72,共4页
Modern Computer