delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/05/06:00:48

From: "Rafal Maj" <maj_rafal AT poczta DOT onet DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: busy-wait loop - djgpp_yeld
Date: Sat, 5 May 2001 11:35:35 +0200
Organization: Academic Computer Center CYFRONET AGH
Lines: 16
Message-ID: <9d0i9v$hdv$1@info.cyf-kr.edu.pl>
NNTP-Posting-Host: d-94-53-13.cyfronet.krakow.pl
X-Trace: info.cyf-kr.edu.pl 989056128 17855 149.156.1.173 (5 May 2001 09:48:48 GMT)
X-Complaints-To: news AT cyf-kr DOT edu DOT pl
NNTP-Posting-Date: Sat, 5 May 2001 09:48:48 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,
what functions should I all inside my busy-wait loop to make my program nice
to other tasks ? How can I control "nice" level (Idle or realtime) ?
With function is most portable ?
And maybe some Allegro functions are better ?

while (!finish) {
  do_calculations();
  djgpp_yeld();  // ?
  rest(100); // ?
}

Rafał Maj
(new nickname: Raf256)


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019