文件名称: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