*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> npri (1)              
Title
Content
Arch
Section
 

Contents


NPRI(1)								       NPRI(1)


NAME    [Toc]    [Back]

     npri - modify the scheduling priority of a	process

SYNOPSIS    [Toc]    [Back]

     npri [ -w ] | [ -r	priority [ -s policy ] ] | [ -n	nice ] | [ -t slice ]
     [ -p pid ]
     npri [ -w ] | [ -r	priority [ -s policy ] ] | [ -n	nice ] | [ -t slice ]
     [ cmd args	... ]

DESCRIPTION    [Toc]    [Back]

     This command allows the super-user	to modify certain scheduling
     parameters	of a process or	to create a new	process	with specific
     scheduling	parameters.  For a detailed description	of how the parameters
     affect the	scheduling of a	process, please	see the	sched_setscheduler(2)
     manual page.  If npri is invoked without reference	to a specific process
     or	command	to execute, it simply invokes a	copy of	the user's shell, as
     specified by the SHELL environment	variable, with the scheduling
     characteristics specified.

OPTIONS    [Toc]    [Back]

     The following options are supported:

     -w	       This option makes the process weightless. A weightless process
	       executes	at a priority strictly less than any other process in
	       the system.

     -r	priority
	       This option sets	the priority of	a process. For real-time
	       policies	(see -s) the valid priority range is 0 to 255, while
	       the time-share policy accepts priorities	ranging	from 1 to 40.
	       When used without the -s	option,	npri will attempt to reset the
	       priority	of the specified process according to its current (or
	       inherited) policy.

     -s	policy This option sets	the scheduling policy of a process. The
	       supported policies are FIFO and RR for real-time	and TS for
	       timeshare. Both the policy and priority will be inherited by
	       any new children	of the process.	 Care should be	used when
	       assigning real-time policies, since such	a process is not
	       preemptable by normal interactive processes.  Refer to
	       realtime(5) for more details.

     -n	nice   This option sets	the absolute nice value	of a process.  The
	       nice value affects how normal UNIX priority calculations	are
	       made.  The allowable range of nice values is 0 to 39.  Refer to
	       nice(2) for more	information.

     -t	slice  This option sets	the time-slice for the process,	in terms of
	       the basic kernel	clock frequency	(called	ticks).	 The 4D	Series
	       machines	use a clock frequency of 100 hertz, so one tick	is 10
	       milliseconds.  For example, a slice value of 3 gives a 30
	       millisecond time	slice.	The time slice value will be inherited



									Page 1






NPRI(1)								       NPRI(1)



	       by any new children of the process.

     -h	priority
	       This option has been deprecated and will	be removed in a	future
	       release.	 Please	use the	-r and -s options to achieve the
	       desired effect.

     -p	pid    This option names a specific process whose priority is to be
	       altered.	 This makes it possible	to change priorities of	a
	       running process.

SEE ALSO    [Toc]    [Back]

      
      
     nice(2), schedctl(2), sched_setscheduler(2), realtime(5).


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
rtprio FreeBSD execute, examine or modify a utility's or process's realtime or idletime scheduling priority
idprio FreeBSD execute, examine or modify a utility's or process's realtime or idletime scheduling priority
getpriority Tru64 Get or set process scheduling priority
setpriority Tru64 Get or set process scheduling priority
nice OpenBSD change process scheduling priority
nice Tru64 Change the scheduling priority of a process
rtprio FreeBSD examine or modify a process realtime or idle priority
sched_setscheduler Tru64 Sets the scheduling policy and scheduling parameters of the specified process (P1003.1b)
getpriority OpenBSD get/set program scheduling priority
setpriority OpenBSD get/set program scheduling priority
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service