Message-ID: <00f301bf8cdb$8f29c8f0$293f8589@gv015029.bgo.nera.no> From: "Gisle Vanem" To: Subject: Re: pause() in idle programas Date: Mon, 13 Mar 2000 12:01:58 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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 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.