检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:孔德凤[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.
分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.170