delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/17/11:00:02

Message-ID: <36792993.F93B6D04@monsterbymistake.com>
Date: Thu, 17 Dec 1998 10:56:03 -0500
From: Agent Drek <drek AT monsterbymistake DOT com>
Organization: Monster By Mistake Inc>
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: cpu eater
References: <01be28e9$44e67ec0$affd22cb AT fountain>
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019