文件名称: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