基于JAVA线程机制研究生产者-消费者问题  被引量:2

Research on the Producer-Consumer Problem based on JAVA Thread Mechanism

在线阅读下载全文

作  者:孔德凤[1] 应时[2] Kong Defeng;Ying Shi(Xinhua College of Ningxia University,Yinchuan Ningxia 750021,China;Computer School of Wuhan University,Wuhan Hubei 430061,China)

机构地区:[1]宁夏大学新华学院,宁夏银川750021 [2]武汉大学计算机学院,湖北武汉430061

出  处:《信息与电脑》2017年第2期100-103,共4页Information & Computer

摘  要:生产者与消费者问题是《操作系统》中经典进程同步问题的典型代表。笔者介绍了JAVA线程机制实现的两种方式,通过实例对比两种方式的区别,并且将Runnable接口实现多线程的方法应用在操作系统中典型的生产者-消费者问题上。这种用JAVA实现生产者与消费者问题的思想不仅可以帮助学生更好理解所学内容,而且还可以锻炼学生的动手实践能力,具有很强的参考价值和实践意义。Producer and consumer issues are typical examples of classic process synchronization problems in the"operating system".The author introduces two ways to achieve the JAVA thread mechanism,through the example of the difference between the two ways,and applies the method of achieving the Runnable interface multi-threaded to the operating system in the typical producer-consumer issues.This idea of using JAVA to achieve the problem of producers and consumers can not only help students better understand what they have learned,but also can exercise the practical ability of students,which has a strong reference value and practical significance.

关 键 词:JAVA 线程 生产者-消费者 

分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象