文件名称:Java-run
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:8.9kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.