taskpolicy man page on Darwin

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
Darwin logo
[printable version]

taskpolicy(8)		  BSD System Manager's Manual		 taskpolicy(8)

NAME
     taskpolicy — execute a program with an altered I/O or scheduling policy

SYNOPSIS
     taskpolicy [-d policy] [-b] program [arg1 [...]]

DESCRIPTION
     The taskpolicy program uses the setiopolicy_np(3) and setpriority(2) APIs
     to execute a program with altered I/O or scheduling policies. All chil‐
     dren of the specified program also inherit these policies.

     taskpolicy accepts the following flags and arguments:

	   -d policy  Run the program after calling setiopolicy_np(3) with an
		      iotype of IOPOL_TYPE_DISK, a scope of
		      IOPOL_SCOPE_PROCESS, and the specified policy. The argu‐
		      ment can either be an integer, or a symbolic string like
		      "default" or "throttle", which is interpreted case-
		      insensitively.

	   -g policy  Run the program after calling setiopolicy_np(3) with an
		      iotype of IOPOL_TYPE_DISK, a scope of IOPOL_SCOPE_DAR‐
		      WIN_BG, and the specified policy. The argument is inter‐
		      preted in the same manor as -d.

	   -b	      Run the program after calling setpriority(2) with a pri‐
		      ority of PRIO_DARWIN_BG.

SEE ALSO
     setpriority(2), setiopolicy_np(3)

Darwin				April 27, 2024				Darwin
[top]

List of man pages available for Darwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net