From: Paul Repacholi <prep@prep.synonet.com>
Subject: Re: short-term scheduling algorithm
Date: 15 May 2001 03:57:53 +0800 [thread overview]
Message-ID: <87vgn366v2.fsf@prep.synonet.com> (raw)
In-Reply-To: tfvui67ab83h3f@corp.supernews.com
daniel <shenxueyu@yahoo.com> 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
prev parent reply other threads:[~2001-05-14 19:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-14 15:31 short-term scheduling algorithm daniel
2001-05-14 17:06 ` Robert M. Riches Jr.
2001-05-15 3:09 ` Jason Stratos Papadopoulos
2001-05-14 19:57 ` Paul Repacholi [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox