文件名称:Dining_Philosophers
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:3.19kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
英国帝国理工学院电脑系多线程课程教学材料之八 ---- 哲学家晚餐范例-Five philosophers sit around a circular table. Each philosopher spends his life alternatively thinking and eating. In the centre of the table is a large plate of spaghetti. A philosopher needs two forks to eat a helping of spaghetti. Unfortunately, as philosophy is not as well paid as computing, the philosophers can only afford five forks. One fork is placed between each pair of philosophers and they agree that each will only use the fork to his immediate right and left. The slider in the applet below controls the amount of time that a philosopher spends eating and thinking. Philosophers are depicted in yellow when they are thinking, blue when hungry and green when eating.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Diners.java
Philosopher.java
Fork.java
PhilCanvas.java
Philosopher.java
Fork.java
PhilCanvas.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.