摘要
生产者与消费者问题是《操作系统》中经典进程同步问题的典型代表。本文介绍了基于单缓冲区和多缓冲区的生产者与消费者问题在JAVA中的多种实现机制,其中主要利用了数据结构中的循环队列和堆栈来模拟实现。这种用JAVA实现生产者与消费者问题的思想不仅可以帮助学生更好的理解所学内容,而且还可以锻炼学生的动手实践能力,具有很强的参考价值和实践意义。
The problem of producer - consumer is a typical representative of classical process's synchronizing in《operating system》. Some methods accomplishing the problem of producer - consumer with single - buffer and multi - buffer in JAVA were introduced, which mainly use circulating queue and stack in Data Structure. The thinking of accomplishing the problem of producer - consumer in JAVA will not only help students understand the content better, but also enhance their practical ability, which has a strong reference value and practical significance.
出处
《内蒙古农业大学学报(自然科学版)》
CAS
2006年第2期117-121,共5页
Journal of Inner Mongolia Agricultural University(Natural Science Edition)