Message-ID: <367D11FB.121968AC@monsterbymistake.com> Date: Sun, 20 Dec 1998 10:04:27 -0500 From: Agent Drek 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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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'.)