-
philosopher(1.6)
哲学家进餐问题——Java语言实现
哲学家进餐问题是一个多线程运用的经典例子,涉及到线程同步/互斥,临界区访问问题以及一个避免死锁的解决方法。
有五个哲学家绕着圆桌坐,每个哲学家面前有一盘面,两人之间有一支筷子,这样每个哲学家左右各有一支筷子。
哲学家有2个状态,思考或者拿起筷子吃饭。如果哲学家拿到一只筷子,不能吃饭,直到拿到2只才能吃饭,并且一次只能拿起身边的一支筷子。一旦拿起便不会放下筷子直到把饭吃完,此时才把这双筷子放回原处。
如果,很不幸地,每个哲学家拿起他或她左边的筷子,那么就没有人可以吃到饭了。这就会造成死锁了。。这是需要坚决杜绝的,正如操作系统的死锁问题。()
- 2008-05-20 01:23:04下载
- 积分:1
-
pRIORITYtHREADfACTORYtEST
link Priority Thread Factory Source Code for Andriod.
- 2014-01-13 18:29:11下载
- 积分:1
-
chatSystem
通过用JAVA语言编程出可以窗口聊天的程序,跟QQ聊天窗口差不多。(By using the JAVA programming language that can chat program window, with the QQ chat window almost.)
- 2014-04-29 15:48:55下载
- 积分:1
-
ImmutableMultiset
An immutable hash-based multiset. Does not permit null elements.
- 2013-12-03 09:39:33下载
- 积分:1
-
jd-gui-1.4.0
说明: Java decoder, decomplier
- 2020-06-22 18:40:01下载
- 积分:1
-
CellSpanTest
setup to exercise tables in which cells use spanning.
- 2013-12-02 15:39:46下载
- 积分:1
-
Design-and-develop
智能家居的设计和开发应用,关于智能家居的设计和开发应用(Intelligent home control system design and development, on the smart home control system design and development)
- 2013-09-28 13:41:41下载
- 积分:1
-
MD5
JAVA开发的文件加密程序,带界面,可随机生成密码。使用MD5方法生成密钥,进行加密。由eclipse开发。(JAVA development file encryption program, with the interface, can be randomly generated password. Using the MD5 method to generate keys for encryption. By the eclipse development.)
- 2013-06-24 20:18:19下载
- 积分:1
-
JAVA--the-basic
关于JAVA的基础编程学习,清华大学课件,可以下载学习(JAVA programming on the basis of learning, Tsinghua University courseware, you can download of learning)
- 2014-11-21 11:31:59下载
- 积分:1
-
game
用java语言编写的蜘蛛纸牌游戏,与windows上的差不多。对运用java实践有极大的帮助,教你如何运用java开发游戏(Using java language Spider Solitaire Game, and the windows on the almost. Practice on the use of java there is a great help, teaching you how to use java develop Games)
- 2009-03-17 00:59:19下载
- 积分:1