delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <a201f7f00808311516m251b7928vcbad9f722188755f@mail.gmail.com> |
Date: | Sun, 31 Aug 2008 23:16:14 +0100 |
From: | "Paul Carter" <paul DOT carter44 AT googlemail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Pthread Priorities |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |