[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac. (fwd)



>From owner-rtl Mon Jun 25 14:23:15 2001
Received: from mail.cc.kuleuven.ac.be (mail.cc.kuleuven.ac.be [134.58.10.6])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f5PKNEe07048
	for <rtl@fsmlabs.com>; Mon, 25 Jun 2001 14:23:14 -0600
Received: from bolleke.mech.kuleuven.ac.be (bolleke.mech.kuleuven.ac.be [134.58.24.48])
	by mail.cc.kuleuven.ac.be (8.9.3/8.9.0) with ESMTP id WAA646180
	for <rtl@fsmlabs.com>; Mon, 25 Jun 2001 22:16:59 +0200
Received: from pc25-213.mech.kuleuven.ac.be (IDENT:bruyninc@pc25-213.mech.kuleuven.ac.be [134.58.25.213])
	by bolleke.mech.kuleuven.ac.be (8.9.3/8.9.3) with ESMTP id WAA23870
	for <rtl@fsmlabs.com>; Mon, 25 Jun 2001 22:16:58 +0200 (METDST)
Date: Mon, 25 Jun 2001 22:16:58 +0200 (CEST)
From: Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
X-X-Sender:  <bruyninc@pc25-213.mech.kuleuven.ac.be>
Reply-To: Herman Bruyninckx <herman.bruyninckx@mech.kuleuven.ac.be>
To: <rtl@fsmlabs.com>
Subject: Re: [rtl] Problem with multiple threads
In-Reply-To: <3B376F42.9ACD82A@as.arizona.edu>
Message-ID: <Pine.LNX.4.33.0106252211290.28990-100000@pc25-213.mech.kuleuven.ac.be>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Mon, 25 Jun 2001, Ken Ramey wrote:

[...]
>   sched_param.sched_priority = 100;
>   pthread_attr_setschedparam(&attr, &sched_param);

Is 100 an allowed priority? I thought 99 was the maximum...
Anyway, it's better to use relative indications of priorities, e.g.,

   sched_param.sched_priority = sched_get_priority_max(SCHED_FIFO)-3;

Herman

-- 
"I decry the current tendency to seek patents on algorithms. There are
 better ways to earn a living than to prevent other people from making
 use of one's contributions to computer science."  D.E. Knuth, TAoCP 3

----- End of forwarded message from owner-rtl@fsmlabs.com -----