| delorie.com/archives/browse.cgi | search |
| From: | "Rafael García" <rafael AT geninfor DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | RE: pause() in idle programas |
| Date: | Mon, 13 Mar 2000 14:23:44 +0100 |
| Organization: | Telefonica Transmision de Datos |
| Lines: | 28 |
| Message-ID: | <8aipsn$a5e$1@diana.bcn.ttd.net> |
| References: | <00f301bf8cdb$8f29c8f0$293f8589 AT gv015029 DOT bgo DOT nera DOT no> |
| NNTP-Posting-Host: | 194.179.101.62 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.00.2014.211 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Gisle Vanem <gvanem AT eunet DOT no> escribió en el mensaje de noticias
00f301bf8cdb$8f29c8f0$293f8589 AT gv015029 DOT bgo DOT nera DOT no...
> 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.
I don't see the difference. Performance is the same, it works much better
without both.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |