Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <42908DA6.8030709@familiehaase.de> Date: Sun, 22 May 2005 15:48:22 +0200 From: "Gerrit P. Haase" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 MIME-Version: 1.0 To: "Gerrit P. Haase" CC: cygwin AT cygwin DOT com Subject: Re: Is pthread_attr_setschedparam() not supported? References: <42907469 DOT 4000004 AT familiehaase DOT de> <20050522122519 DOT GR2794 AT calimero DOT vinschen DOT de> <4290836E DOT 3010103 AT familiehaase DOT de> <20050522131558 DOT GT2794 AT calimero DOT vinschen DOT de> <42908C57 DOT 4090200 AT familiehaase DOT de> In-Reply-To: <42908C57.4090200@familiehaase.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Gerrit P. Haase wrote: > Corinna Vinschen wrote: > >> On May 22 15:04, Gerrit P. Haase wrote: >> >>> And why is this in /usr/include/sys/features.h:87 then: >>> # define _POSIX_THREAD_PRIORITY_SCHEDULING 1 >>> ? >> >> >> >> Yup, you're right, I just replied without looking into the source first >> (which, btw., is always a good way of figuring stuff out by yourself, >> really). >> >> pthread_attr_setschedparam is supported and ENOTSUPP is returned if the >> sched_priority member is not in the range -14 - 15. > > > What is the difference between 14 and 15? I see in the NSRP source that > it is hardcoded to 10 for Neutrino systems, what do you think is better, > set it to 14 or to 15? Actually it is the NSPR - Netscape Portable Ryntime. I guess one of the two values indicates a higher priority, anyway, if I hardcode the return value it should be the same to define it with 14 or 15. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/