登录
首页 » Java » philosopher(1.6)

philosopher(1.6)

于 2008-05-20 发布 文件大小:6KB
0 220
下载积分: 1 下载次数: 34

代码说明:

  哲学家进餐问题——Java语言实现 哲学家进餐问题是一个多线程运用的经典例子,涉及到线程同步/互斥,临界区访问问题以及一个避免死锁的解决方法。 有五个哲学家绕着圆桌坐,每个哲学家面前有一盘面,两人之间有一支筷子,这样每个哲学家左右各有一支筷子。 哲学家有2个状态,思考或者拿起筷子吃饭。如果哲学家拿到一只筷子,不能吃饭,直到拿到2只才能吃饭,并且一次只能拿起身边的一支筷子。一旦拿起便不会放下筷子直到把饭吃完,此时才把这双筷子放回原处。 如果,很不幸地,每个哲学家拿起他或她左边的筷子,那么就没有人可以吃到饭了。这就会造成死锁了。。这是需要坚决杜绝的,正如操作系统的死锁问题。()

文件列表:

philosopher
...........\.classpath
...........\.project
...........\DiningPhils.class
...........\DiningPhils.java
...........\Philosopher.class

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • market-system
    小型超市管理系统基于那个java开发程序设计的应用(Small supermarket management system based on the java application development process design)
    2013-12-24 22:49:11下载
    积分:1
  • lib(1)
    电信公司有UNIX服务器出租业务,针对 该出租业务需要一套办公系统来提升办事 效率,提升该业务信息化程度(无纸化 办公),我们的系统就是针对该出租业务 而提供的完整解决方案。(Telecom companies have UNIX server rental business. The rental business requires an office system to upgrade its services. Efficiency, improve the degree of informatization of the business (paperless) Office), our system is for the rental business. And provide a complete solution.)
    2019-01-21 10:11:59下载
    积分:1
  • 实验三 SNMP的应用开发(三)
    说明:  此为基于java的snmp管理站开发,编程实现SNMP管理站,完成对SNMP代理的远程访问。(Development of SNMP management station based on Java)
    2019-06-09 13:25:29下载
    积分:1
  • TrmSim
    基于信誉的无线传感器网络模型。用java编写的(Trust and Reputation Models Simulator for Wireless Sensor Networks。the program is implemented by java)
    2013-11-10 22:05:55下载
    积分:1
  • aa
    说明:  本书系统地介绍了SWT、Draw2D、GEF、JET 等与Eclipse 插件开发相关的基础知识,并且以实际的开发案例来演示 这些知识的实战性应用,通过对这些实际开发案例的学习,读者可以非常轻松地掌握Eclipse插件开发的技能,从而开发出满 足个性化需求的插件(Case to demonstrate the actual development of these practical application of knowledge through the development of these practical case study, the reader can very easily grasp Eclipse plug-in development skills to develop products that meet the individual needs of the plug-in.)
    2014-02-20 12:59:02下载
    积分:1
  • regress-110286
    Multiline comments containing "/" should not be syntax errors.
    2014-02-13 21:37:04下载
    积分:1
  • 需求梳理1.0
    Java后端接口规范,公司使用的,以上参考,尽自己使用(Java back-end interface specification, the company uses, the above reference, do your best to use)
    2020-06-17 14:00:01下载
    积分:1
  • DaCheapp
    1:在运行后台项目之前,请保证拥有正常的开发环境 2:项目结构基于Maven 下的Spring SpringMvc Mybatis+mysql开源框架 3:配备Maven开发环境 4:导入群共享文件 5:正常运行 注:项目模块: a:用户系统模块 b:车辆预定模块 c:接送机服务 d:拼车服务 e:心情说说 f:说说评论 g:轮播图片 提供相应的手机接口: 登录,注册,修改密码,修改用户资料,修改用户图像,发表说说...车辆预定,拼车,轮播图片,等完整的app接口..... 项目管理系统用于开发者进行学习,没有任何版权,开发者可以在源码的基础上,进行改版,可用于企业级项目!(Data Transfer)
    2016-07-21 17:29:16下载
    积分:1
  • Java_tushu
    JAVA图书查询系统。主要练习面向对象一种思维,实习最终代码。已编译通过(JAVA book search system. Practice when preparing their submissions the ultimate source, the main practice of object-oriented way of thinking.)
    2012-05-10 16:44:07下载
    积分:1
  • CheckBox
    Check Box extends Compound Button Source Code for Andriod.
    2014-01-03 19:27:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载