proc_nice Change the priority of the current process php函数


(PHP 5)

proc_niceChange the priority of the current process


bool proc_nice ( int $increment )

proc_nice() changes the priority of the current process by the amount specified in increment. A positive increment will lower the priority of the current process, whereas a negative increment will raise the priority.

proc_nice() is not related to proc_open() and its associated functions in any way.



The increment value of the priority change.


成功时返回 TRUE, 或者在失败时返回 FALSE. If an error occurs, like the user lacks permission to change the priority, an error of level E_WARNING is also generated.


Note: Availability

proc_nice() will only exist if your system has 'nice' capabilities. 'nice' conforms to: SVr4, SVID EXT, AT&T, X/OPEN, BSD 4.3. This means that proc_nice() is not available on Windows.

proc_open Execute a command and open file pointers for input/output
proc_terminate Kills a process opened by proc_open
property_exists 检查对象或类是否具有该属性
pspell_add_to_personal Add the word to a personal wordlist
pspell_add_to_session Add the word to the wordlist in the current session
pspell_check Check a word
pspell_clear_session Clear the current session
pspell_config_create Create a config used to open a dictionary
pspell_config_data_dir location of language data files
pspell_config_dict_dir Location of the main word list
pspell_config_ignore Ignore words less than N characters long
pspell_config_mode Change the mode number of suggestions returned
pspell_config_personal Set a file that contains personal wordlist
pspell_config_repl Set a file that contains replacement pairs

Copyright © 2016 phpStudy |