文件名称:guitusaipao
介绍说明--下载内容来自于网络,使用问题请自行百度
编写一个程序生成两个线程(进程)模拟龟兔赛跑。
1、兔子进程优先级高,因而跑的快,但兔子进程随机发生一些睡眠。
2、乌龟进程优先级低,因而跑的慢,但乌龟进程不发生睡眠。
3、程序应能用动画方式显示龟兔赛跑的进程。
源程序如下:(我在vc6.0调试通过)-procedures for the preparation of a generation two threads (processes) simulation hand. 1, rabbits process high priority and thus run faster, but the rabbit random process some sleep. 2, turtles low-priority process, which run slowly, but the process does not occur turtles sleep. 3, procedures should be spent shown the race between animation process. Source : (I vc6.0 through debugging)
1、兔子进程优先级高,因而跑的快,但兔子进程随机发生一些睡眠。
2、乌龟进程优先级低,因而跑的慢,但乌龟进程不发生睡眠。
3、程序应能用动画方式显示龟兔赛跑的进程。
源程序如下:(我在vc6.0调试通过)-procedures for the preparation of a generation two threads (processes) simulation hand. 1, rabbits process high priority and thus run faster, but the rabbit random process some sleep. 2, turtles low-priority process, which run slowly, but the process does not occur turtles sleep. 3, procedures should be spent shown the race between animation process. Source : (I vc6.0 through debugging)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
guitusaipao.txt
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.