CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - 2 opt
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - 2 opt - List
[
Other Riddle games
]
guitusaipao
DL : 0
编写一个程序生成两个线程(进程)模拟龟兔赛跑。 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)
Date
: 2025-12-26
Size
: 1kb
User
:
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.