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

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

于 2022-03-25 发布 文件大小:82.91 kB
0 185
下载积分: 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 个回复

  • 婴儿出生信息登记 .按键1可以录入一条婴儿材料,其中婴儿母亲、婴儿性别和护理人员代码不能为空,其他数据如果需要为空请输入 / 。 2.按键2可以查看...
    婴儿出生信息登记系统 .按键1可以录入一条婴儿材料,其中婴儿母亲、婴儿性别和护理人员代码不能为空,其他数据如果需要为空请输入 / 。 2.按键2可以查看婴儿材料保存文件里面的所有婴儿材料。 3.按键3可以通过输入婴儿父母姓名、婴儿性别、婴儿出生医院或者婴儿出生日期进行查找。 4.按键4可以显示超低重婴儿材料,超低重婴儿标准是低于1kg。 5.按键5可以通过输入婴儿编号确定需要修改材料的婴儿,然后可以通过输入所需修改的项目,对婴儿材料除婴儿编号以外的数据进行修改。 6.按键6可以通过输入婴儿编号来确定要删除的婴儿材料。 7.按键7查看使用说明。 8.按键8退出婴儿信息登记系统。-birth registration information system. Press a baby can be an input materials, baby mothers, the gender of babies and nursing staff code can not be empty, the other data if needed to enter the air /. 2. Press two babies can view material inside the preservation of all infant materials. 3. 3 keys can be imported baby names of parents, infant sex, Hospital births or birth date you. 4. Press 4 show low weight babies materials, ultra-low weight babies is lower than 1kg standards. 5. Five keys can be imported baby No. identified the need to amend the material babies, then through the importation of necessary changes, in addition to the infant baby No. materials outside the data changes. 6
    2022-10-28 03:50:03下载
    积分:1
  • UCGUI中文手册1
    UCGUI中文手册1-5 PDF电子版 ucos-ii中文书(邵贝贝) word版-Chinese UCGUI Manual 1-5 PDF electronic version ucos-ii Chinese books (Shao Beibei) word version
    2022-01-30 20:25:27下载
    积分:1
  • Philips ARM资料,包括了arm开发的
    Philips ARM资料,包括了arm开发的-Philips ARM information, including the various aspects of the development arm
    2023-08-21 19:05:03下载
    积分:1
  • AMESim_Matlab的仿真及其在单向阀优化设计中的应用
    AMESim_Matlab的仿真及其在单向阀优化设计中的应用-AMESim_Matlab Simulation and optimization in a one-way valve design
    2022-01-26 16:41:48下载
    积分:1
  • nfgfn gfjf mnfg gmfgn fgnjmngf fmfgnv ngfnf gmhg FM
    nfgfn gfjf mnfg gmfgn fgnjmngf fmfgnv ngfnf gmhg fm
    2022-02-01 01:06:09下载
    积分:1
  • 这是博弈论算法全集第五部分:局面描述,其它算法将陆续推出.以便与大家共享...
    这是博弈论算法全集第五部分:局面描述,其它算法将陆续推出.以便与大家共享-This is the Complete Works of game theory algorithm Part V: the situation described, other algorithms will be introduced. In order to share with everyone
    2023-08-14 15:00:03下载
    积分:1
  • 三篇论文的人脸检测,那些有兴趣的可以看一下,可以的…
    三篇关于人脸检测的论文,有意者可以看看,希望有所价值,不要积分-Face detection on the three papers, those who are interested can look at, would like to see the value, not points
    2022-02-21 21:37:26下载
    积分:1
  • EasySetup是一套简单易用的封装程序,虽然操作简易可是功能并不会比知名的Installer Shield或者Installer VISE来得逊色多少。...
    EasySetup是一套简单易用的软件封装程序,虽然操作简易可是功能并不会比知名的Installer Shield或者Installer VISE来得逊色多少。您使用EasySetup不仅可以制作出一般应用程序的安装文件,还可以将您的Word、PowerPoint、甚至于网页也给包装起来成为一个具备安装功能的应用程序。EasySetup让您省去繁复的安装文件撰写过程,而改以视觉化的方式来处理所有的安装程序制作,当您在使用个过程中会觉得好像在制作Powerpoint 头影片一般的轻松,只要将所有的元件都加入即可,另外在安装过程中使用到的文字说明部份EasySetup也提供了特定的栏位让您输入,这麽便利的功能设计让您可以在短短的数分钟之间就制作出具有专业水准的安装程序。除此之外EasySetup还提供了反安装程序的设定、多国语言设定支持等功能。 -EasySetup is a simple, easy-to-use software packaging process, Although the operation simple and functional but not well-known than the Installer Shield or Installed ler Compiler much worse number. You can not only use EasySetup produced general application program installation files, You can also Word, PowerPoint, even the website also to wrap up the installation has become a function of the application. EasySetup allows you to avoid the cumbersome installation process of writing, and the change in visual ways to handle all the installation procedures for production, When you use the process will look like in the
    2022-03-10 08:56:40下载
    积分:1
  • :针对不可否认L
    :针对不可否认L-L-C-Z门限代理签密协议中存在的安全缺陷,提出了一个改进的门限代理签密协议.通过 对L-L-C-Z门限代理签密协议的密码分析,利用接收方修改公钥的方法,计算出任意消息的有效伪造签密结果.利 用类似于缩短的数字签名标准(SDSS)的安全技术,以及通过公钥验证签密结果的技术,给出一个新的改进协议.安 全分析结果表明,与L-L-C-Z门限代理签密协议相比,该改进门限代理签密协议能够承受接收方公钥替换攻击.改进的门限代理签密协议利用接收方公钥而不是私钥来验证签密结果,其验证过程能向第三方公开.
    2023-06-04 08:25:03下载
    积分:1
  • 2023-02-11 14:15:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载