-
philosopher(1.6)
哲学家进餐问题——Java语言实现
哲学家进餐问题是一个多线程运用的经典例子,涉及到线程同步/互斥,临界区访问问题以及一个避免死锁的解决方法。
有五个哲学家绕着圆桌坐,每个哲学家面前有一盘面,两人之间有一支筷子,这样每个哲学家左右各有一支筷子。
哲学家有2个状态,思考或者拿起筷子吃饭。如果哲学家拿到一只筷子,不能吃饭,直到拿到2只才能吃饭,并且一次只能拿起身边的一支筷子。一旦拿起便不会放下筷子直到把饭吃完,此时才把这双筷子放回原处。
如果,很不幸地,每个哲学家拿起他或她左边的筷子,那么就没有人可以吃到饭了。这就会造成死锁了。。这是需要坚决杜绝的,正如操作系统的死锁问题。()
- 2008-05-20 01:23:04下载
- 积分:1
-
CreationPDF
creation fichier PDF a partir de n importe quelle format cool
- 2013-12-29 16:10:06下载
- 积分:1
-
Calculator0.9
自己学习过程中做的计算器,还在修改,只实现了基本的算数功能,并且可能还存在BUG(The calculator that i do in the course of my study is still changing)
- 2017-12-18 23:13:27下载
- 积分:1
-
enn-excel
说明: 读取dwg、excel office cad 通用类 封装好 解压能用(Read the general classes of DWG and excel office cad, pack them well and use them for decompression)
- 2020-06-22 21:20:01下载
- 积分:1
-
drp3.2
drp项目虽是个小型项目,但对写毕业论文是很有帮助的()
- 2011-10-04 13:49:23下载
- 积分:1
-
FileManager
网上文件管理系统:myeclipse开发的,可以上传下载文件,struts2框架,附带mysql数据库(Online document management system: myeclipse developed can upload and download files, struts2 framework with mysql database)
- 2013-11-29 14:35:26下载
- 积分:1
-
operator
说明: 一个操作系统的课程设计,主要是利用Java编写的,期间用到了数据库技术(An operating system, curriculum design, mainly using Java, during the use of database technology)
- 2009-09-01 10:40:41下载
- 积分:1
-
OReilly-Enterprise-JavaBeans-3rd
OReilly Enterprise JavaBeans 3rd.pdf
- 2011-05-12 21:17:25下载
- 积分:1
-
ly
说明: 旅游网站设计,数据库设计,框架设计,主体设计,网页设计(Travel website design, database design, frame design, main design, web design)
- 2019-05-14 11:25:39下载
- 积分:1
-
WindowManagerPolicy
This interface supplies all UI-specific behavior of the window manager.
- 2013-12-29 14:52:09下载
- 积分:1