delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/11/05:32:47

Date: Tue, 11 Nov 1997 11:31:16 +0100 (MET)
From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
To: sl <sl AT usemail DOT com>
cc: DJGPP mailing list <djgpp AT delorie DOT com>
Subject: Re: RHIDE -- author(s) please read this
In-Reply-To: <sonmkigiu.pminews@porta15.generation.net>
Message-ID: <Pine.LNX.3.95.971111112405.1351B-100000@posaune.hrz.tu-chemnitz.de>
MIME-Version: 1.0

On Fri, 7 Nov 1997, sl wrote:

> 	RHIDE (for DOS) is multitasking unfriendly. I assume that when RHIDE
What version of RHIDE are you using?

> is idle it uses:
> 
>   while (! (keypressed = KBHIT() ) );
>   switch keypressed <etc..>

Oh no!! In RHIDE it is much more complicated.

> #include <pc.h>
> #include <dpmi.h>
> 
>   while (!keypressed=kbhit())
>     __dpmi_yield();
> 
> 	the cpu usage goes down from 100% to 1%.. Can you please make this

Becuase I don't know what version of RHIDE you are using, I cannot
give you the exact solution, but if it is 1.3 then please disable
the 'SHow free memory' option from the preferences and see if it
helps.

In version 1.4 this should be fixed (at least under Linux I get
a CPU usage when RHIDE is idle of about 0.8%).

BTW: If you are running under Windows (what I'm guessing), How do you
mess the CPU usage? Are you sure, that the shown value is correct?

And a last note: Have you ever tried, that the __dpmi_yield()
has any effect? When I remember correct, I tried it already several
times and couldn't see any effect.

Robert
******************************************************
* Robert Hoehne <robert DOT hoehne AT gmx DOT net>              *
* Post:    Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW:     http://www.tu-chemnitz.de/~sho/rho        *
******************************************************

- Raw text -


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