-
philosopher(1.6)
哲学家进餐问题——Java语言实现
哲学家进餐问题是一个多线程运用的经典例子,涉及到线程同步/互斥,临界区访问问题以及一个避免死锁的解决方法。
有五个哲学家绕着圆桌坐,每个哲学家面前有一盘面,两人之间有一支筷子,这样每个哲学家左右各有一支筷子。
哲学家有2个状态,思考或者拿起筷子吃饭。如果哲学家拿到一只筷子,不能吃饭,直到拿到2只才能吃饭,并且一次只能拿起身边的一支筷子。一旦拿起便不会放下筷子直到把饭吃完,此时才把这双筷子放回原处。
如果,很不幸地,每个哲学家拿起他或她左边的筷子,那么就没有人可以吃到饭了。这就会造成死锁了。。这是需要坚决杜绝的,正如操作系统的死锁问题。()
- 2008-05-20 01:23:04下载
- 积分: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
-
ch03
非常好的JAVA学习资料,免费提供给大家03.RAR(JAVA very good learning materials, free of charge to everyone 03.RAR)
- 2008-04-10 16:24:12下载
- 积分:1
-
shiro-root-1.2.6-source-release
包括所有二进制功能Shiro(没有依赖关系),在某些构建有用的 环境(如Ant)。 然而,这是 不 不推荐在Maven构建 保持正确的依赖项的元数据,从而导致Maven工作错误。 对于Maven构建, 它是 高度 建议指定单个模块下面列出的要求他们。(Includes all binary functionality for Shiro (without dependencies), useful in certain build environments (e.g. Ant). However, this is NOT recommended in Maven builds as it does not retain correct dependency metadata, which can lead to Maven working incorrectly. For Maven builds, it is highly recommended to specify individual modules listed below as you require them.)
- 2018-04-28 18:05:52下载
- 积分:1
-
Employee
创建四个类,分别为Employee类、SalariedEmplyee类、HourlyEmployee类和CommissionEmployee类。其中Employee类是其他三个类的父类。Employee类包含姓名和身份证号。除此之外,SalariedEmployee类还应包含每月工资;HourlyEmployee类还应包含每小时工资数和工作时间数;CommissionEmployee还应包含提成比例和销售总额。每个类都应有合适的构造方法、数据成员的设置和读取方法。编写一个应用程序,创建这些类的对象,并输出与对象相关的信息。注意子类有时需调用父类的构造方法和被覆盖的方法,成员变量定义为private,对有些方法实现重载。
(Create four categories, namely the Employee class, SalariedEmplyee class, HourlyEmployee classes and CommissionEmployee classes. Employee class is the parent class where the other three classes. Employee class contains the name and ID number. In addition, SalariedEmployee class also includes a monthly salary HourlyEmployee class should also include the number of hourly wages and the number of working hours CommissionEmployee should also include the proportion and total sales commission. Each class should have the right to set and read the constructor method, data members. Write an application to create objects of these classes, and output information associated with the object. Sometimes need to call attention to a subclass of the parent class constructor and methods are covered, member variables defined as private, to achieve overloading of some methods.)
- 2013-11-27 11:43:06下载
- 积分:1
-
基于java的图书管理系统源码Java源码.zip
基于java的图书管理系统源码Java源码.zip
- 2020-02-02下载
- 积分:1
-
DVDMrgTest
一个影碟出租的 控制台小程序 适合初学java的人(A DVD rental java console applet suitable for beginners who)
- 2013-07-03 14:22:50下载
- 积分:1
-
FTPClient
说明: java 写的一个ftp客户端!可以运行ssh!!!(write a java ftp client! Can run ssh! ! !)
- 2010-04-28 19:39:31下载
- 积分:1
-
struts-ORACLE=classquery
基于struts和ORACLE的课程查询,保证使用(struts and Oracle-based courses inquiries to ensure that the use of)
- 2007-06-29 08:44:02下载
- 积分:1
-
DataExchangeTest
本程序是对于Java中的Swing的实践,实现了数据交换的JDialog的信息传输。(This procedure is Java' s Swing for the practice realize the data exchange of information transmission JDialog.)
- 2009-02-13 15:58:07下载
- 积分:1