From: Stas Sergeev <stsp@aknet.ru>
To: linux-msdos@vger.kernel.org
Subject: Re: How to free CPU time?
Date: Fri, 05 Aug 2005 17:25:20 +0400 [thread overview]
Message-ID: <42F368C0.2010508@aknet.ru> (raw)
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.
next reply other threads:[~2005-08-05 13:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-05 13:25 Stas Sergeev [this message]
[not found] ` <42F3BD02.7080501@pobox.com>
[not found] ` <42F3CE28.60107@aknet.ru>
2005-08-06 0:03 ` reinstalling Alain
2005-08-06 1:38 ` More info on Cursor problem Alain
2005-08-09 2:11 ` Cursor problem: Debugging Alain
-- strict thread matches above, loose matches on Subject: below --
2005-07-30 9:01 Instaling Xfont Stas Sergeev
2005-08-02 20:23 ` Cursor and CVS problems Alain
2005-08-04 21:41 ` How to free CPU time? Alain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42F368C0.2010508@aknet.ru \
--to=stsp@aknet.ru \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox