-
philosopher(1.6)
哲学家进餐问题——Java语言实现
哲学家进餐问题是一个多线程运用的经典例子,涉及到线程同步/互斥,临界区访问问题以及一个避免死锁的解决方法。
有五个哲学家绕着圆桌坐,每个哲学家面前有一盘面,两人之间有一支筷子,这样每个哲学家左右各有一支筷子。
哲学家有2个状态,思考或者拿起筷子吃饭。如果哲学家拿到一只筷子,不能吃饭,直到拿到2只才能吃饭,并且一次只能拿起身边的一支筷子。一旦拿起便不会放下筷子直到把饭吃完,此时才把这双筷子放回原处。
如果,很不幸地,每个哲学家拿起他或她左边的筷子,那么就没有人可以吃到饭了。这就会造成死锁了。。这是需要坚决杜绝的,正如操作系统的死锁问题。()
- 2008-05-20 01:23:04下载
- 积分:1
-
Vapour
IBM robocode的冠军代码Vapour,直接可用,适合开发时做对比使用(IBM robocode champion Code Vapour, directly available for use when developing to do comparison
)
- 2020-11-06 16:39:49下载
- 积分:1
-
cooec
实现类似资源浏览器的树形目录, 作了一些功能添加()
- 2018-05-15 09:34:47下载
- 积分:1
-
NIOAccess
This class is used via J N I by code in frameworks/base Source Code for Andriod.
- 2013-12-16 11:37:02下载
- 积分:1
-
sshe
使用sshe框架 便于界面美观 希望有所帮助 望各位不吝赐教(
Sshe easy to use and beautiful interface framework to help Hope you wish wing)
- 2015-01-21 08:54:43下载
- 积分:1
-
Mechanic
采用Java语言开发的,基于序单开链理论的机构结构分解程序,可以将各种分解路线和生成的对应回路完整保存(The development of the Java language, the decomposition procedure based on the institutional structure of the sequence a single open-chain theory, the various decomposition route and generate the corresponding loop intact)
- 2012-05-10 11:57:10下载
- 积分:1
-
TankWar1.9.11
用java开发的坦克大战,里面有源码,还有相关的资料(Tank War)
- 2012-01-02 12:40:48下载
- 积分:1
-
MyWeb3.0
javaweb博客 可以直接运行的哦!!!!(javaweb blog)
- 2013-12-09 09:05:20下载
- 积分:1
-
java
java并发编程实战pdf及源码,java并发编程实战pdf及源码(Java Concurrent Programming PDF and source code,Java Concurrent Programming PDF and source code)
- 2016-04-24 20:43:02下载
- 积分:1
-
HuaCheng-(1)
web版JAVA农业类的交易平台。使用MVC设计模式,数据库使用的是sql server.开发环境用的MyEclipse(Web version of the JAVA agricultural trading platform)
- 2015-05-16 09:02:04下载
- 积分:1