Mail Archives: djgpp/1998/12/17/11:00:02
hi there...
I thought I sent this before but I don't think it got through.
so here goes:
I'm compiling on a UNIX (commercial cc) box and an NT (DJGPP)
DJGPP Version 2.01
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???
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?
I'm not a really experienced C programmer and would appreciate any
help...is there a particular FAQ i could read?
thanks alot,
=derek marshall
=====================================
while(1)
{
/* Poll render queue file */
_curr = brqe();
printf("%u\n",_curr);
sleep (5);
}
=====================================
!./go32-v2.exe
go32/v2 version 2.0 built Aug 12 1996 22:27:23
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries
as
well as v1 binaries (old makefiles). Put ahead of the old go32 in your
PATH
but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.
DPMI memory available: 82583 Kb
DPMI swap space available: 0 Kb
- Raw text -