文件名称:Java-run
- 所属分类:
- JSP源码/Java
- 资源属性:
- [WORD]
- 上传时间:
- 2012-11-26
- 文件大小:
- 9kb
- 下载次数:
- 0次
- 提 供 者:
- yang****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1. 有一个南北向的桥,只能容纳一个人,现桥的两边分别有10人和12人,编制一个多线程程序让这些人到达对岸,每个人用一个线程表示,桥为共享资源。
2. 利用多线程编写龟兔赛跑程序。
乌龟:速度慢,休息时间短;
兔子:速度快,休息时间长;
-1. There is a north-south bridge can only accommodate one person is on both sides of the bridge 10 and 12 respectively, the preparation of a multi-threaded program to allow these people to reach the other side, each with a thread that bridge for the shared resource. 2. Using multi-threaded programs written Tortoise and the Hare. tortoise: slow and short rest periods rabbit: fast, rest a long time
2. 利用多线程编写龟兔赛跑程序。
乌龟:速度慢,休息时间短;
兔子:速度快,休息时间长;
-1. There is a north-south bridge can only accommodate one person is on both sides of the bridge 10 and 12 respectively, the preparation of a multi-threaded program to allow these people to reach the other side, each with a thread that bridge for the shared resource. 2. Using multi-threaded programs written Tortoise and the Hare. tortoise: slow and short rest periods rabbit: fast, rest a long time
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Java-run.doc