delorie.com/archives/browse.cgi | search |
Message-ID: | <00f301bf8cdb$8f29c8f0$293f8589@gv015029.bgo.nera.no> |
From: | "Gisle Vanem" <gvanem AT eunet DOT no> |
To: | <djgpp AT delorie DOT com> |
Subject: | Re: pause() in idle programas |
Date: | Mon, 13 Mar 2000 12:01:58 +0100 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 4.72.3110.5 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
Reply-To: | djgpp AT delorie DOT com |
Rafael García <rafael AT geninfor DOT com> said: >int getoption() { > while (!kbhit()) { > pause(); // or delay(50) > maintenance(); > } > return getch(); > } > >this must do a better work in distributing CPU power between multiple >programs, but I have found that this makes other proccess to perform much >poorly. Don't use pause(), use __dpmi_yield() instead. Gisle V.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |