delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/06/14:49:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Originating-IP: [129.42.208.186]
From: "Thomas Chadwick" <j_tetazoo AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: nice command?
Date: Mon, 06 Jan 2003 14:44:37 -0500
Mime-Version: 1.0
Message-ID: <F17tz5eIUVoG5mNYAE4000098cc@hotmail.com>
X-OriginalArrivalTime: 06 Jan 2003 19:44:37.0598 (UTC) FILETIME=[0BC8BFE0:01C2B5BC]

I got to playing around with Windows 2000 Task Manager the other day and 
discovered that you can change the priority of a running task.  This led me 
to discover that you can specify the priority of a task when you launch it 
by way of the windows start command using one of the following options:

    LOW         Start application in the IDLE priority class
    NORMAL      Start application in the NORMAL priority class
    HIGH        Start application in the HIGH priority class
    REALTIME    Start application in the REALTIME priority class
    ABOVENORMAL Start application in the ABOVENORMAL priority class
    BELOWNORMAL Start application in the BELOWNORMAL priority class
    WAIT        Start application and wait for it to terminate

I then got to playing with nice (under Cygwin) to see what I could do about 
setting the priority of a Cygwin task.  I used the following syntax and 
tried a number of values of x:

    nice -n x programname.exe

I found that specify a value of x=0 results in NORMAL priority.  For any 
value of x > 0, I found I got a priority of LOW.  For any value of x < 0, I 
found I got a priority of HIGH.

I tried "man nice" and "info nice" and got scant documentation.  I'm just 
curious if this is the expected behavior of nice?  Is my analysis correct, 
or are there other values of "x" that will get me the other Windows 
priorities?  FWIW, there's a Cygwin task I'd like to launch with AboveNormal 
priority.


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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