www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/20/10:08:16

Message-ID: <367D11FB.121968AC@monsterbymistake.com>
Date: Sun, 20 Dec 1998 10:04:27 -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: Re: cpu eater
References: <Pine DOT SUN DOT 3 DOT 91 DOT 981220112541 DOT 27996G-100000 AT is>
Reply-To: djgpp AT delorie DOT com

Thanks for the replies

I tried a modified version:

main()
{
        while(1)
        {
        /* Poll render queue file */
        /* _curr = brqe(); */
        printf("%u\n",_curr);
        sleep (15);
        }
}

that still measured 100% CPU on the NT (with the Task Manager)
are there options I could pass to gcc? (maybe it's because some
debugging stuff is going on?) or could it be the while?
CPU time is very important for what I'm doing or else I would let
it spin out

I am just confused because the same code works great on my SGI.

still trying...

	=derek

Eli Zaretskii wrote:

> 
> I used the NT-standard Task Manager utility (Press Ctrl-Alt-Del, then
> click "Task manager" and choose Processes) to test this.
>
> Could it be that the call to `brqe' is the one where all the CPU is
> eaten up?  (Obviously, I couldn't test that, but I replaced it with a
> call to `kbhit'.)

- Raw text -


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