操作系统 哲学家进餐进程算法

上传者: u010241224 | 上传时间: 2020-01-03 11:36:22 | 文件大小: 1.6MB | 文件类型: rar
实验一 进程同步互斥——不死锁的哲学家问题   (1)输入的形式和输入值的范围;   由于这个是一个按钮实现监控,界面提供视图的程序,所以并不需要别的附加的输入,只需要点击相应的按钮即可。按钮有开始、暂停、结束(退出)。实验只需要按动开始键,即可以直观形象地看到哲学家吃面条问题在随机时间下的解决情况,方便用户查看。   输出的形式;   输出的形式,是以可视化界面的形式,哲学家和筷子的状态以图片的形式显示出来,可以看到是饥饿还是进餐或思考状态。而提示输出是以String的形式显示在界面右下角的位置的。方便用户更客观的查看进程的运行情况。   程序所能达到的功能;   该程序能解决经典的哲学家吃面条问题的问题,即死锁问题。在此题中,筷子是一个共享的但是要互斥使用的临界资源 ,当前筷子是否被占用,其他哲学家的状态,都是需要进行交互的,于是涉及同步互斥的问题。该程序能解决死锁问题及将哲学家的状态用可视化的界面显示出来,所以比较客观的让我们理解了这个问题的实现。

文件下载

资源详情

[{"title":"( 33 个子文件 1.6MB ) 操作系统 哲学家进餐进程算法","children":[{"title":"201030690202蔡曼佳","children":[{"title":"201030690202蔡曼佳 实验报告.doc <span style='color:#111;'> 906.40KB </span>","children":null,"spread":false},{"title":"可执行文件","children":[{"title":"Philosopher.jar <span style='color:#111;'> 235.08KB </span>","children":null,"spread":false},{"title":"Philosopher.exe <span style='color:#111;'> 380.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"哲学家进餐源代码","children":[{"title":"manifest.mf <span style='color:#111;'> 85B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"philosopher","children":[{"title":"Philosopher.java <span style='color:#111;'> 13.90KB </span>","children":null,"spread":false},{"title":"image","children":[{"title":"2.jpg <span style='color:#111;'> 5.49KB </span>","children":null,"spread":false},{"title":"1.jpg <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false},{"title":"4.jpg <span style='color:#111;'> 27.49KB </span>","children":null,"spread":false},{"title":"9.jpg <span style='color:#111;'> 174.60KB </span>","children":null,"spread":false},{"title":"3.jpg <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"build","children":[{"title":"empty","children":null,"spread":false},{"title":"generated-sources","children":[{"title":"ap-source-output","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"philosopher","children":[{"title":"Philosopher$Newp.class <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"Philosopher$MyThread.class <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"Philosopher.class <span style='color:#111;'> 6.58KB </span>","children":null,"spread":false},{"title":"Philosopher$Newo.class <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"Philosopher$1.class <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"image","children":[{"title":"2.jpg <span style='color:#111;'> 5.49KB </span>","children":null,"spread":false},{"title":"1.jpg <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false},{"title":"4.jpg <span style='color:#111;'> 27.49KB </span>","children":null,"spread":false},{"title":"9.jpg <span style='color:#111;'> 174.60KB </span>","children":null,"spread":false},{"title":"3.jpg <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false}],"spread":false},{"title":"Philosopher$Newn.class <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"built-jar.properties <span style='color:#111;'> 160B </span>","children":null,"spread":false}],"spread":true},{"title":"dist","children":[{"title":"README.TXT <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"Philosopher.jar <span style='color:#111;'> 235.08KB </span>","children":null,"spread":false},{"title":"Philosopher.exe <span style='color:#111;'> 380.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"build.xml <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false},{"title":"nbproject","children":[{"title":"genfiles.properties <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"private","children":[{"title":"private.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"private.properties <span style='color:#111;'> 93B </span>","children":null,"spread":false},{"title":"private.xml.0.nblh~ <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":true},{"title":"build-impl.xml <span style='color:#111;'> 55.62KB </span>","children":null,"spread":false},{"title":"project.xml <span style='color:#111;'> 519B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • qq_24744475 :
    可以参考一下 就是有点乱
    2014-12-25
  • brilliam :
    界面丑了点,算法是正确的,不错
    2014-03-30
  • DevinZhang2018 :
    代码不错,参考学习
    2014-01-02
  • 深海浮冰 :
    这个比较符合要求 可视化动画,满分
    2013-06-21

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明