From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,753b5643b97061a3 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-05-14 13:25:22 PST Sender: prep@k9 Newsgroups: comp.os.linux.alpha Subject: Re: short-term scheduling algorithm References: From: Paul Repacholi Date: 15 May 2001 03:57:53 +0800 Message-ID: <87vgn366v2.fsf@prep.synonet.com> User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 215.pe01.dial.iqnet.net.au X-Trace: 15 May 2001 03:32:52 +0800, 215.pe01.dial.iqnet.net.au Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!btnet-peer1!btnet!newsr1.ipcore.viaginterkom.de!news-feed1.de1.concert.net!fu-berlin.de!newsfeed.iinet.net.au!nntp!usenet.per.paradox.net.au!127.0.0.1!nobody Xref: archiver1.sj.google.com comp.os.linux.alpha:2852 daniel writes: > An I/O-bound program is one that, if run alone, would spend more time > waiting for I/O than using the processor. A processor-bound program is the > opposite. Suppose a short-term scheduling algorithm favors those programs > that have used little processor time in the recent past. Could u tell me > why this algorithm favors I/O-bound programs and yet does not permanently > deny processor time to processor-bound programs. Ah, mid May, end of semester looming is it? It does not. There could be enought IO bound processes to a) stay within the high-pri window, and b) use 100% between them. Thus there will always be a high priority IO completion process, and your CPU bound process will not be scheduled. See the VMS sysgen docs for the ugly details of stopping this from being a major problem if the lo pri process is holding an 'interesting' lock or in a critical section. The last is called priority inversion. -- Paul Repacholi 1 Crescent Rd., +61 (08) 9257-1001 Kalamunda. West Australia 6076 Raw, Cooked or Well-done, it's all half baked. Spam-To: uce@ftc.gov,enforcement@sec.gov,sness@fcc.gov,hfurchtg@fcc.gov, mpowell@fcc.gov,gtristan@fcc.gov