From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stas Sergeev Subject: Re: How to free CPU time? Date: Fri, 05 Aug 2005 17:25:20 +0400 Message-ID: <42F368C0.2010508@aknet.ru> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-msdos@vger.kernel.org Hello. Alain wrote: > What is the best method to release cpu usage inside dosemu? int 28h is known to be the most generic way of doing this, unrelated to dosemu. int 2fh/ax=1680h works well too. > The problem is: I have made a program that runs in a loop checking > keyboard, mouse, network, etc.. It cannot call bios read key function > and lock there. But it surely can (and should) call the bios function to check the available keystroke: int 16h/ah=1, and it will release the CPU time too. > If I do HLT, will it restart > after "interrupt" Yes, but AFAIK dosemu won't release the CPU cycles on hlt. Its use is not recommended. > PS: I still have the problem below Not reproduceable.