登录
首页 » Java » philosopher(1.6)

philosopher(1.6)

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

代码说明:

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

文件列表:

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

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

发表评论

0 个回复

  • parking_dao
    自己学习ssm框架并根据课题开发的小系统,这是dao模块(learn framework of ssm by myself)
    2020-06-18 22:00:01下载
    积分:1
  • 基于Libpcap实现的局域网嗅探抓包发包解析工具
    说明:  基于Libpcap实现的局域;网嗅探抓包发包解析工具.(Packet sniffing and packet capturing ;analysis tool based on Libpcap.)
    2020-07-04 20:00:02下载
    积分:1
  • CompletionInfo
    Information about a single text completion that an editor has reported to an input method.
    2014-01-03 19:35:20下载
    积分:1
  • OpenJavaTradingSystem-bin-0.13 (1)
    java trading stock platform
    2017-09-13 11:38:34下载
    积分:1
  • HIstrogram
    jhiomegsnbiu9av uihionafcuigh9af ajighanngvbiu
    2013-08-07 13:37:18下载
    积分:1
  • Mouse
    java 打地鼠小游戏 课程设计 经过测定 非常好用(the code for java game)
    2020-06-19 15:40:02下载
    积分:1
  • xaj
    说明:  新安江模型java程序 包括产流 汇流 河道演进 (Java program of Xin anjiang Model )
    2021-03-31 16:49:09下载
    积分:1
  • rzgisters__getter__performance
    Emulator:1. The information flow process of the OSI reference model: a simulation program is designed to explain the flow of information flow in the OSI reference model and the function of each layer. modulation and
    2019-03-25 21:52:32下载
    积分:1
  • Fourth_Assignment
    清华大学计算机系Java小学期第四次作业——正则表达式。包含题目与源代码。(Department of Computer Science Java primary period of the fourth job- regular expressions. Includes topics related to the source code.)
    2013-10-19 21:19:18下载
    积分:1
  • page
    STRUT1.2的简单分页,提供大家简单的学习和应用(struts1.2 s ease page,please everyone can learning and application for use.)
    2013-04-10 15:53:21下载
    积分:1
  • 696516资源总数
  • 106918会员总数
  • 4今日下载