From: David Butenhof <David.Butenhof@compaq.com>
Subject: Re: Can Tru64 unix support SCHED_FIFO and SCHED_OTHER simultaneously?
Date: Tue, 08 Jan 2002 08:32:17 -0500 [thread overview]
Message-ID: <hDC_7.392$5Y4.11047@news.cpqcorp.net> (raw)
In-Reply-To: 9110ba7d.0201080017.3b244945@posting.google.com
Barry Wu wrote:
> I am new to this newsgroup. Now I meet problem about Tru64 realtime.
> Can Tru64 support SCHED_FIFO and SCHED_OTHER simulataneously?
> If so, please give me a reply. Thanks in advance!
Of course. Any system can. On the other hand, the BEHAVIOR of this is
completely undefined by the standard and may vary wildly from one system to
another. (That's simply because the standard says absolutely nothing about
what SCHED_OTHER is or does, much less how it interacts with the specified
policies.)
On Tru64 UNIX, SCHED_OTHER means "prioritized timeshare". The
sched_priority member of struct sched_params is used as a "base priority",
from which the thread's priority may be dynamically modified by the
scheduler. All threads are scheduled purely on the basis of priority, as
required by POSIX. The policy affects only whether the thread can preempt a
lower priority thread when made ready (SCHED_RR and SCHED_FIFO do,
SCHED_OTHER does not), and whether wakeups occur in priority order (again,
SCHED_FIFO and SCHED_RR do, SCHED_OTHER generally does not).
/------------------[ David.Butenhof@compaq.com ]------------------\
| Compaq Computer Corporation POSIX Thread Architect |
| My book: http://www.awl.com/cseng/titles/0-201-63392-2/ |
\-----[ http://home.earthlink.net/~anneart/family/dave.html ]-----/
prev parent reply other threads:[~2002-01-08 13:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-08 8:17 Can Tru64 unix support SCHED_FIFO and SCHED_OTHER simultaneously? Barry Wu
2002-01-08 13:32 ` David Butenhof [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