文件名称:Dining-philosophers-problem

  • 所属分类:
  • 操作系统开发
  • 资源属性:
  • [Windows] [Visual.Net] [源码]
  • 上传时间:
  • 2013-04-17
  • 文件大小:
  • 9.27mb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

哲学家就餐问题是一道十分经典的进程同步问题。该道题旨在解决当资源有限时(可能产生死锁),如何有效地避免死锁的问题。本实验选取“and”型信号量的解决办法,只有当哲学家具备同时拿到左右两只筷子的能力时,才能吃饭。否则,若则学家只能能够拿到一只筷子时,他只能放弃这只筷子,供其他可能需要这只筷子的哲学家使用。这样,只有哲学家左右两人均不进食时,该哲学家才有吃饭的权利。采取这种方法可以有效地避免死锁的产生。-The dining philosophers problem is a very classic process synchronization problem. This question is designed to address the problem (which may produce deadlock) when resources are limited, how to avoid deadlocks. In our study, " and" type signal amount of solution only when philosophers have the ability to get around two chopsticks to eat. Otherwise, if the scientist can only be able to get a chopsticks, he can only be waived only chopsticks for the other may need to use only chopsticks philosopher. In this way, only philosophers around two people are not eating, the philosopher have the right to eat. Adopt this method can effectively avoid the generation of deadlock.
(系统自动生成,下载前可以参看下载内容)

下载文件列表





哲学家就餐问题

..............\Debug

..............\.....\test.exe

..............\.....\test.ilk

..............\.....\test.pdb

..............\ipch

..............\....\test-319cd61e

..............\....\.............\test-2434c52c.ipch

..............\test

..............\....\Debug

..............\....\.....\CL.read.1.tlog

..............\....\.....\CL.write.1.tlog

..............\....\.....\link-cvtres.read.1.tlog

..............\....\.....\link-cvtres.write.1.tlog

..............\....\.....\link.11388-cvtres.read.1.tlog

..............\....\.....\link.11388-cvtres.write.1.tlog

..............\....\.....\link.11388.read.1.tlog

..............\....\.....\link.11388.write.1.tlog

..............\....\.....\link.1160-cvtres.read.1.tlog

..............\....\.....\link.1160-cvtres.write.1.tlog

..............\....\.....\link.1160.read.1.tlog

..............\....\.....\link.1160.write.1.tlog

..............\....\.....\link.read.1.tlog

..............\....\.....\link.write.1.tlog

..............\....\.....\mt.read.1.tlog

..............\....\.....\mt.write.1.tlog

..............\....\.....\rc.read.1.tlog

..............\....\.....\rc.write.1.tlog

..............\....\.....\stdafx.obj

..............\....\.....\test.exe.embed.manifest

..............\....\.....\test.exe.embed.manifest.res

..............\....\.....\test.exe.intermediate.manifest

..............\....\.....\test.lastbuildstate

..............\....\.....\test.log

..............\....\.....\test.obj

..............\....\.....\test.pch

..............\....\.....\test_manifest.rc

..............\....\.....\vc100.idb

..............\....\.....\vc100.pdb

..............\....\ReadMe.txt

..............\....\stdafx.cpp

..............\....\stdafx.h

..............\....\targetver.h

..............\....\test.cpp

..............\....\test.vcxproj

..............\....\test.vcxproj.filters

..............\....\test.vcxproj.user

..............\test.sdf

..............\test.sln

..............\test.suo

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org