From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,861e1349b2fc194b X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-01-08 05:38:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail From: David Butenhof Subject: Re: Can Tru64 unix support SCHED_FIFO and SCHED_OTHER simultaneously? Newsgroups: comp.unix.tru64 References: <9110ba7d.0201080017.3b244945@posting.google.com> User-Agent: KNode/0.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: Date: Tue, 08 Jan 2002 08:32:17 -0500 NNTP-Posting-Host: 16.31.48.112 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1010497101 16.31.48.112 (Tue, 08 Jan 2002 05:38:21 PST) NNTP-Posting-Date: Tue, 08 Jan 2002 05:38:21 PST Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:6390 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 ]-----/