-
philosopher(1.6)
哲学家进餐问题——Java语言实现
哲学家进餐问题是一个多线程运用的经典例子,涉及到线程同步/互斥,临界区访问问题以及一个避免死锁的解决方法。
有五个哲学家绕着圆桌坐,每个哲学家面前有一盘面,两人之间有一支筷子,这样每个哲学家左右各有一支筷子。
哲学家有2个状态,思考或者拿起筷子吃饭。如果哲学家拿到一只筷子,不能吃饭,直到拿到2只才能吃饭,并且一次只能拿起身边的一支筷子。一旦拿起便不会放下筷子直到把饭吃完,此时才把这双筷子放回原处。
如果,很不幸地,每个哲学家拿起他或她左边的筷子,那么就没有人可以吃到饭了。这就会造成死锁了。。这是需要坚决杜绝的,正如操作系统的死锁问题。()
- 2008-05-20 01:23:04下载
- 积分:1
-
java-books
this is java reference books.
- 2011-12-17 19:35:32下载
- 积分:1
-
OOAD-PROJECT-master
java project for students
- 2017-11-11 03:32:07下载
- 积分:1
-
2597708
本程序用于词法分析:从DOS界面输入一行的C语句,并以#号结尾(注意必须以这个为结束标志,否则出错,要求输出对应的单词的()
- 2017-10-14 22:43:51下载
- 积分:1
-
aopalliance-1.0
说明: 在软件业,AOP为Aspect Oriented Programming的缩写,意为:面向切面编程,通过预编译方式和运行期动态代理实现程序功能的统一维护的一种技术。AOP是OOP的延续,是软件开发中的一个热点,也是Spring框架中的一个重要内容,是函数式编程的一种衍生范型。利用AOP可以对业务逻辑的各个部分进行隔离,从而使得业务逻辑各部分之间的耦合度降低,提高程序的可重用性,同时提高了开发的效率(In the software industry, AOP is the abbreviation of Aspect Oriented Programming, which means: Face-Oriented Programming, a technology to achieve unified maintenance of program functions through pre-compiling and run-time dynamic proxy. AOP is the continuation of OOP, a hotspot in software development, an important content in Spring framework, and a derivative paradigm of functional programming. Using AOP can isolate all parts of business logic, which reduces the coupling between the parts of business logic, improves the reusability of programs, and improves the efficiency of development.)
- 2020-06-23 01:20:02下载
- 积分:1
-
bluez-5.46.tar
a cat is red and lne lejr lkejl kjklerj le
- 2018-02-08 00:24:16下载
- 积分:1
-
Project_subu
Hope it is useful. feedbacks are welcome
- 2017-09-29 23:33:46下载
- 积分:1
-
TransactionService
Transaction Service extends Service implements Observer Source Code for Andriod.
- 2013-12-19 11:14:26下载
- 积分:1
-
vp253
EULER numerical analysis method, It has a wealth of parameter options, Use Chaos and fractal analysis routines.
- 2017-09-08 11:40:43下载
- 积分:1
-
java
给学JAVA的一些提示和警告,帮助学习和使用java,新手必读( )
- 2014-01-14 12:16:48下载
- 积分:1