-
philosopher(1.6)
哲学家进餐问题——Java语言实现
哲学家进餐问题是一个多线程运用的经典例子,涉及到线程同步/互斥,临界区访问问题以及一个避免死锁的解决方法。
有五个哲学家绕着圆桌坐,每个哲学家面前有一盘面,两人之间有一支筷子,这样每个哲学家左右各有一支筷子。
哲学家有2个状态,思考或者拿起筷子吃饭。如果哲学家拿到一只筷子,不能吃饭,直到拿到2只才能吃饭,并且一次只能拿起身边的一支筷子。一旦拿起便不会放下筷子直到把饭吃完,此时才把这双筷子放回原处。
如果,很不幸地,每个哲学家拿起他或她左边的筷子,那么就没有人可以吃到饭了。这就会造成死锁了。。这是需要坚决杜绝的,正如操作系统的死锁问题。()
- 2008-05-20 01:23:04下载
- 积分:1
-
ch06_3
JAVA 文件操作 包括文件的复制 创建文件 显示文件等等操作(JAVA file copy file to create the file display file etc.)
- 2014-04-14 17:44:06下载
- 积分:1
-
Java Socket+Demo通信 服务器端例子
仅含服务器端代码
- 2015-04-01下载
- 积分:1
-
全国省、县界线shp格式矢量图(精确到县区域)
说明: 全国省市区县行政区划边界shp矢量图,精确到区县级(SHP vector map of provinces, cities, districts and counties in China, accurate to districts and counties)
- 2021-03-08 21:29:28下载
- 积分:1
-
我封装的okhttp
这是一款我封装的okhttp3,自动管理cookies,get,post,json请求和自动解析json功能,内附案例(This is a okhttp3 encapsulated by me, which automatically manages cookies, get, post, JSON requests and automatic parsing JSON functions.)
- 2018-04-21 20:25:17下载
- 积分:1
-
SimpleWrite
This software is not designed or intended for use in on-line control
* of aircraft, air traffic, aircraft navigation or aircraft
* communications or in the design, construction, operation or
* maintenance of any nuclear facility. Licensee represents and
* warrants that it will not use or redistribute the Software for such
(This software is not designed or intended for use in on-line control
* of aircraft, air traffic, aircraft navigation or aircraft
* communications or in the design, construction, operation or
* maintenance of any nuclear facility. Licensee represents and
* warrants that it will not use or redistribute the Software for such
)
- 2009-03-14 17:02:19下载
- 积分:1
-
Fourth_Assignment
清华大学计算机系Java小学期第四次作业——正则表达式。包含题目与源代码。(Department of Computer Science Java primary period of the fourth job- regular expressions. Includes topics related to the source code.)
- 2013-10-19 21:19:18下载
- 积分:1
-
javascript-By-Example
this is very useful e-book for JavaScript.
- 2014-03-01 13:11:09下载
- 积分:1
-
GUIIPLS21
说明: oints in data to the points in model. Fit with respect to minimize the sum of square
- 2020-06-22 23:40:01下载
- 积分:1
-
pachong
说明: java的一个爬虫抓取物流信息的小demo,本demo测试抓取快递100的物流轨迹信息(Java crawler to grab logistics information of the small demo, this demo test to grab express 100 logistics trajectory information)
- 2020-06-23 08:20:02下载
- 积分:1