登录
首页 » 软件系统 » 哲学家进餐问题是荷兰学者Dijkstra 提出的经典问题之一,它是一个信号量机制问题的应用,在操作系统文化史上具有非常重要的地位。对该问题的剖析有助于学生深刻地...

哲学家进餐问题是荷兰学者Dijkstra 提出的经典问题之一,它是一个信号量机制问题的应用,在操作系统文化史上具有非常重要的地位。对该问题的剖析有助于学生深刻地...

于 2022-03-25 发布 文件大小:82.91 kB
0 192
下载积分: 2 下载次数: 1

代码说明:

哲学家进餐问题是荷兰学者Dijkstra 提出的经典问题之一,它是一个信号量机制问题的应用,在操作系统文化史上具有非常重要的地位。对该问题的剖析有助于学生深刻地理解计算机系统中的资源共享、进程同步、死锁等问题,并能熟练地应用信号量来解决生活中的控制流程,即将生活中的控制流程用形式化的方式表达出来。 假设有5个哲学家,他们花费一生中的时光思考和吃饭。这些哲学家共用一个圆桌,每个哲学家都有一把椅子。在桌子中央是一碗通心面,在桌子上放着5只筷子。(如图所示)当一个哲学家思考时,他与其他同事不交互。时而,哲学家会感到饥饿,并试图拿起与他相近的两只筷子(他与邻近左、右之间的筷子)。一个哲学家一次只能拿起一只筷子。显然,他不能从其他哲学家手里拿走筷子。当一个饥饿的哲学家同时有两只筷子时,他就不能不用释放他的筷子而自己吃了。当吃完后,他会放下两只筷子,并再次开始思考。 规定奇数号哲学家先拿他左边的筷子,然后再去拿右边的筷子;而偶数号哲学家则相反。按此规定,将是1、 2号哲学家竞争1号筷子;3、4号哲学家竞争3号筷子。即五位哲学家都先竞争奇数号筷子,获得后,再去竞争偶数号筷子,最后总会有一位哲学家能获得两只筷子而进餐。 -dining philosophers problem is the Netherlands scholars Dijkstra"s one of the classic, It is a signal to the mechanism of application, the operating system in the history of culture has a very important position. Analysis of the problem to help students understand deeply the computer system resource sharing, process synchronization, and other issues Deadlock, skilled and can be applied to solve the signal volume life of the control flow, about the life of the control flow wi

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

发表评论

0 个回复

  • 武汉创维特ARM教学
    武汉创维特ARM教学系统-01 嵌入式系统简介.ppt-Wuhan SKYWORTH-01 Teaching System special ARM Embedded System. Ppt
    2022-02-02 18:20:00下载
    积分:1
  • infrared standards, version 1.4, which can be used for the infrared PHY layer, c...
    红外标准,版本是1.4,用来实现红外的PHY层,具体实现可以参见Linux中的源码-infrared standards, version 1.4, which can be used for the infrared PHY layer, can see concrete realization of the Linux source code
    2022-10-15 13:50:03下载
    积分:1
  • a-啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
    2023-05-24 08:05:03下载
    积分:1
  • 最新电路编辑支持几乎所有的compilati…
    目前最新电路编辑器软件,几乎支持所有的软件编译,欢迎下载-The latest circuit editor software supports almost all of the software compilation, please download the
    2022-01-26 02:59:04下载
    积分:1
  • 学习C的同志可以下这个进行编程 比TC好用多了,也简单多了...
    学习C的同志可以下这个进行编程 比TC好用多了,也简单多了-learning C comrades can be conducted under the program easier to use than the TC also much simpler
    2022-02-24 10:00:23下载
    积分:1
  • Telelogic Tau for complex systems and applications of model
    Telelogic Tau 面向复杂系统和应用程序的模型驱动开发 Telelogic Tau® 是面向系统及应用程序的分析、设计、开发和测试的Model Driven Development™ 环境,它采用包括Unified Modeling Language™ 2.0 (UML™ )、SysML和Model-Driven Architecture® (MDA® )在内的诸多行业标准。-Telelogic Tau for complex systems and applications of model-driven development of Telelogic Tau 庐 is a system and application-oriented analysis, design, development and testing of Model Driven Development
    2022-08-19 07:28:39下载
    积分:1
  • Practical Software documentation writing all PPT courseware, including teachers...
    《实用软件文档写作》的所有PPT课件,包括教师教学的相关指导,和书中所有表格的word文档。有一定的参考价值。- Practical Software documentation writing all PPT courseware, including teachers teaching in the relevant guidance, and the book all the tables in word document. Has a certain reference value.
    2022-03-04 19:23:12下载
    积分:1
  • 概括论述了形状检索的方法,包括区域特征和轮廓特征。
    概括论述了形状检索的方法,包括区域特征和轮廓特征。-Outlined the shape retrieval methods, including the regional characteristics and profile characteristics.
    2022-07-27 13:06:39下载
    积分:1
  • MPLAB模块编程实例
    MPLAB模块编程实例-MPLAB module programming examples
    2022-03-01 13:19:20下载
    积分:1
  • 给别人开发的用于毕业设计的程序,稳定,vb,acce
    给别人开发的用于毕业设计的程序,稳定,vb,acce-To others for the development of graduate programs designed, stable, vb, acce
    2023-03-15 21:40:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载