delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/14/01:35:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <40CD38FA.6070906@luukku.com>
Date: Mon, 14 Jun 2004 08:34:50 +0300
From: Jani tiainen <redetin AT luukku DOT com>
User-Agent: Mozilla Thunderbird 0.7a (Windows/20040612)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: nice not setting above/below normal
References: <1981E79C7C98A547B36D794FBEC5337002967DF6 AT MOSCNTX1> <40C9A8BE DOT DF5B7EAF AT dessent DOT net> <20040613230958 DOT GA4084 AT efn DOT org> <40CCFF18 DOT C6CEFBAA AT dessent DOT net>
In-Reply-To: <40CCFF18.C6CEFBAA@dessent.net>
X-IsSubscribed: yes

Brian Dessent wrote:
> Yitzchak Scott-Thoennes wrote:
> 
>>On Fri, Jun 11, 2004 at 05:42:38AM -0700, Brian Dessent wrote:
>>
>>>reserved for real-time processes.  The remaining range 1-15 are the
>>>regular (dynamic) priorities that most processes run with.  In reality
>>>you don't set the priority directly this way, rather you choose a
>>>priority class (realtime, high, normal, idle; corresponding to 24, 13,
>>>8, 4) and then a modifier (highest, above normal, normal, below normal,
>>>lowest; corresponding to +2, +1, 0, -1, -2).
>>
>>Is that correct?  Shouldn't idle be 3 to allow the full 1-15 range?
> 
> 
> According to sysinternals' Process Explorer, idle is indeed 4.  I
> haven't double checked with anything on MSDN but I don't see why it
> would not be displaying the correct thing, given that it shows the
> priority on the 0-31 scale for every process so it must be using the
> NTDLL level calls.

Hmm, that's pretty complex way to do things:

There is actually three levels: Background/Foreground process, base 
priority, and then special "thread priority" that has seven more modifiers.

Complete text can be found at:

<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/scheduling_priorities.asp>

-- 

Jani Tiainen


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019