X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: Date: Sun, 31 Aug 2008 23:16:14 +0100 From: "Paul Carter" To: cygwin AT cygwin DOT com Subject: Pthread Priorities MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Hi, Does anyone know if setting explicit priorities is currently working under cygwin/pthread? I am calling the following: * pthread_attr_setschedparam() with a fixed priority between -14 and 5 * pthread_attr_setschedpolicy with SCHED_FIFO parameter * pthread_attr_setinheritsched with PTHREAD_EXPLICIT_SCHED parameter From within the spawned thread I am calling pthread_getschedparam() but this always returns current priority 0. This is confirmed by the fact that two threads which are running at different priorities just seem to timeslice between each other. Is this expected behavour? Thanks, Paul. -- 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/