Mail Archives: djgpp/1998/12/17/21:21:15
On Thu, 17 Dec 1998 10:56:03 -0500, in comp.os.msdos.djgpp you wrote:
>I am wondering why it appears that the sleep function with
>the code compiled under DJGPP on the NT seems to use 100% of my CPU???
Perhaps because DJGPP is DOS and DOS is not multitasking sleep just
wastes time rather than giving the time back to the OS to be used by
other processes.
>I was expecting the program to sleep quietly for 5 secs and then
>continue
>the while();
>
>The same code is working fine on the UNIX machine.
>if this is NT being silly then how can I get around this?
No this is not NT being silly because sleep works as expected when
compiled with VC and Borland 5.0
- Raw text -