From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,19d07d96f103778e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed-east.nntpserver.com!nntpserver.com!news1.optus.net.au!optus!newsfeeder.syd.optusnet.com.au!news.optusnet.com.au!not-for-mail Date: Sun, 03 Oct 2004 11:03:40 +1000 From: Ross Higson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Why do the escape sequences not work? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <415f50a2$0$20129$afc38c87@news.optusnet.com.au> NNTP-Posting-Host: 211.30.68.34 X-Trace: 1096765602 20129 211.30.68.34 Xref: g2news1.google.com comp.lang.ada:4588 Date: 2004-10-03T11:03:40+10:00 List-Id: Brian May wrote: > > On a related topic, anyone know how Windows sets priorities on > applications? > > I have a command line application (Ada of course), run in a MS console > window. It is a daemon, so is meant to run in the background, without > any user access required. > > However, I have been getting complaints that it stops working if the > window isn't visible (e.g. covered by another window). If another > window pops up in front of it, it stops working. Also power save mode > on the monitor stops it working (or was that the screen saver?). The > confusing part is that sometimes it does work. > > I haven't seen the problem, and can't reproduce it on Windows XP (the > computer in question is Windows 2000 IIRC). > > My theory is that MS-Windows reduces the priority of the task if the > window is not visible on the assumption that the user doesn't need to > interact with Windows they can't see. > > I have a suspicion that using rxvt might solve the problem (and will > check this ASAP), but I don't know how priorities are set on Windows. Brian, Under NT/2000 the current fg process may indeed get a priority boost that can cause bg processes to slow down. I don't think using rxvt will help, but this behaviour can be disabled. It doesn't happen under XP. See http://www.winguides.com/registry/display.php/877/ Ross.