========================
BUILD OUTPUT DESCRIPTION
========================
When you build an Java application project that has a main class, the IDE
automatically copies all of the JAR
files on the projects classpath to your projects dist/lib folder. The IDE
also adds each of the JAR files to the Class-Path element in the application
JAR files manifest file (MANIFEST.MF).
To run the project from the command line, go to the dist folder and
type the following:
java -jar "Philosopher.jar"
To distribute this project, zip up the dist folder (including the lib folder)
and distribute the ZIP file.
Notes:
* If two JAR files on the project classpath have the same name, only the first
JAR file is copied to the lib folder.
* Only JAR files are copied to the lib folder.
If the classpath contains other types of files or folders, these files (folders)
are not copied.
* If a library on the projects classpath also has a Class-Path element
specified in the manifest,the content of the Class-Path element has to be on
the projects runtime path.
* To set a main class in a standard Java project, right-click the project node
in the Projects window and choose Properties. Then click Run and enter the
class name in the Main Class field. Alternatively, you can manually type the
class name in the manifest Main-Class element.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
实验一 进程同步互斥——不死锁的哲学家问题 (1)输入的形式和输入值的范围; 由于这个是一个按钮实现监控,界面提供视图的程序,所以并不需要别的附加的输入,只需要点击相应的按钮即可。按钮有开始、暂停、结束(退出)。实验只需要按动开始键,即可以直观形象地看到哲学家吃面条问题在随机时间下的解决情况,方便用户查看。 输出的形式; 输出的形式,是以可视化界面的形式,哲学家和筷子的状态以图片的形式显示出来,可以看到是饥饿还是进餐或思考状态。而提示输出是以String的形式显示在界面右下角的位置的。方便用户更客观的查看进程的运行情况。 程序所能达到的功能; 该程序能解决经典的哲学家吃面条问题的问题,即死锁问题。在此题中,筷子是一个共享的但是要互斥使用的临界资源 ,当前筷子是否被占用,其他哲学家的状态,都是需要进行交互的,于是涉及同步互斥的问题。该程序能解决死锁问题及将哲学家的状态用可视化的界面显示出来,所以比较客观的让我们理解了这个问题的实现。
资源推荐
资源详情
资源评论
收起资源包目录
综合性实验.rar (33个子文件)
201030690202蔡曼佳
201030690202蔡曼佳 实验报告.doc 906KB
可执行文件
Philosopher.jar 235KB
Philosopher.exe 381KB
哲学家进餐源代码
manifest.mf 85B
src
philosopher
Philosopher.java 14KB
image
2.jpg 5KB
1.jpg 4KB
4.jpg 27KB
9.jpg 175KB
3.jpg 5KB
build
empty
generated-sources
ap-source-output
classes
philosopher
Philosopher$Newp.class 2KB
Philosopher$MyThread.class 1KB
Philosopher.class 7KB
Philosopher$Newo.class 2KB
Philosopher$1.class 1KB
image
2.jpg 5KB
1.jpg 4KB
4.jpg 27KB
9.jpg 175KB
3.jpg 5KB
Philosopher$Newn.class 3KB
built-jar.properties 160B
dist
README.TXT 1KB
Philosopher.jar 235KB
Philosopher.exe 381KB
build.xml 4KB
nbproject
genfiles.properties 475B
project.properties 2KB
private
private.xml 211B
private.properties 93B
private.xml.0.nblh~ 211B
build-impl.xml 56KB
project.xml 519B
共 33 条
- 1
资源评论
- DevinZhang20182014-01-02代码不错,参考学习
- brilliam2014-03-30界面丑了点,算法是正确的,不错
- 深海浮冰2013-06-21这个比较符合要求 可视化动画,满分
- qq_247444752014-12-25可以参考一下 就是有点乱
凌翎
- 粉丝: 10
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功