philosopher

所属分类:界面编程
开发工具:Visual C++
文件大小:39KB
下载次数:19
上传日期:2008-01-05 13:32:36
上 传 者ywj21c
说明:  用图形界面模拟如下场景:一个圆桌上有一个大碗面,5个盘子,每位哲学家一个,还有5把叉子。每个想吃饭的哲学家将做到桌子旁边分配给他的位置上,使用盘子两侧的叉子,取面和吃面。问题是:设计一个算法以允许哲学家吃饭。算法必须保证互斥(没有两位哲学家同时使用同一把叉子),同时还要避免死锁和饥饿。
(Use graphical interface simulation scenario is as follows: a round-table, there is a large bowl, five plates, one for each philosopher, there are five forks. Every philosopher would like to eat will be allocated to the table next to his position, the use of plates on both sides of the fork, take surface and eat noodles. The question is: to design an algorithm to allow philosophers to eat. Algorithm must ensure that mutually exclusive (no two philosophers use the same fork at the same time), but also to avoid deadlock and starvation.)

文件列表:
源代码及可执行文件\DPG.APS (21624, 2007-11-24)
源代码及可执行文件\DPG.clw (1592, 2008-01-05)
源代码及可执行文件\DPG.cpp (2021, 2007-11-16)
源代码及可执行文件\DPG.dsp (4105, 2007-11-16)
源代码及可执行文件\DPG.dsw (531, 2007-11-16)
源代码及可执行文件\DPG.exe (110674, 2007-11-24)
源代码及可执行文件\DPG.h (1291, 2007-11-16)
源代码及可执行文件\DPG.opt (57856, 2008-01-05)
源代码及可执行文件\DPG.plg (928, 2007-11-24)
源代码及可执行文件\DPG.rc (6032, 2007-11-16)
源代码及可执行文件\DPGDlg.cpp (6359, 2007-11-24)
源代码及可执行文件\DPGDlg.h (1403, 2007-11-16)
源代码及可执行文件\res\DPG.ico (1078, 2007-11-16)
源代码及可执行文件\res\DPG.rc2 (395, 2007-11-16)
源代码及可执行文件\resource.h (1187, 2007-11-16)
源代码及可执行文件\StdAfx.cpp (205, 2007-11-16)
源代码及可执行文件\StdAfx.h (1054, 2007-11-16)
源代码及可执行文件\Debug (0, 2008-01-05)
源代码及可执行文件\res (0, 2007-11-16)
源代码及可执行文件 (0, 2008-01-05)
源代码及可执行文件\DPG.ncb (91136, 2008-01-05)

近期下载者

相关文件


收藏者