-
philosopher(1.6)
哲学家进餐问题——Java语言实现
哲学家进餐问题是一个多线程运用的经典例子,涉及到线程同步/互斥,临界区访问问题以及一个避免死锁的解决方法。
有五个哲学家绕着圆桌坐,每个哲学家面前有一盘面,两人之间有一支筷子,这样每个哲学家左右各有一支筷子。
哲学家有2个状态,思考或者拿起筷子吃饭。如果哲学家拿到一只筷子,不能吃饭,直到拿到2只才能吃饭,并且一次只能拿起身边的一支筷子。一旦拿起便不会放下筷子直到把饭吃完,此时才把这双筷子放回原处。
如果,很不幸地,每个哲学家拿起他或她左边的筷子,那么就没有人可以吃到饭了。这就会造成死锁了。。这是需要坚决杜绝的,正如操作系统的死锁问题。()
- 2008-05-20 01:23:04下载
- 积分:1
-
酒店客房管理系统
说明: Java酒店客房管理系统,包含数据库文件,可以直接导入运行,还包含一系列文档包括论文等。(Java hotel room management system, including database files, can be directly imported to run, also contains a series of documents including papers and so on.)
- 2021-04-04 07:39:04下载
- 积分:1
-
名字转化优化版本
说明: 在空间数据编码练习题的基础上实现 1、名字的左斜变换 2、名字的耸肩变换 3、名字的比例变换 4、名字的旋转变换 5、名字的对称变换 6、名字的平移变换——-优化版本,可直接使用。((On the basis of spatial data coding exercises 1, the left oblique transformation of the name 2, the shrug transformation of the name 3, the proportion transformation of names 4, the rotation transformation of the name 5, the symmetric transformation of the name 6. Translation of names))
- 2020-11-26 18:49:31下载
- 积分:1
-
Entry
import java.lang.annotation.RetentionPolicy .
- 2013-11-28 14:43:48下载
- 积分:1
-
JAVA-calculator
JAVA-计算器JAVA-calculator
JAVA-calculator
(JAVA-Calculator JAVA-calculator JAVA-calculator)
- 2013-03-10 13:55:06下载
- 积分:1
-
XenServerDemo
连接xenserver 开关虚拟机demo(a demo about connect xecserver power on/off the vm)
- 2013-10-18 15:06:05下载
- 积分:1
-
SendMsg_webchinese
中国网建网的发短信代码,中国网建网的发短信代码(this is java code about sms,u can use it send sms.....)
- 2013-08-01 17:42:36下载
- 积分:1
-
WordGame
用java awt界面实现的一个打字小游戏。(Interface with java awt achieve a typing game.)
- 2014-06-07 01:07:28下载
- 积分:1
-
ODB_EER_JOOP
natural language query processing-abstract
- 2012-08-20 07:51:42下载
- 积分:1
-
unit1__
ssd3 unit1编程参考答案,经过实践检验 绝对 正确(The answer of ssd3 unit1)
- 2012-12-06 10:41:33下载
- 积分:1