位置: 编程技术 - 正文

PHP:pcntl_getpriority()的用法_PCNTL函数

编辑:rootadmin
pcntl_getpriority

推荐整理分享PHP:pcntl_getpriority()的用法_PCNTL函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5)

pcntl_getpriority — 获取任意进程的优先级

说明 int pcntl_getpriority ([ int $pid = getmypid() [, int $process_identifier = PRIO_PROCESS ]] )

pcntl_getpriority() 获取进程号为 pid的进程的优先级。由于不同的系统类型以及内核版本下 优先级可能不同,因此请参考您系统的getpriority(2)手册以获取详细的规范。

参数

pid PHP:pcntl_getpriority()的用法_PCNTL函数

如果没有指定,默认是当前进程的进程号。

process_identifier

PRIO_PGRP(译注:获取进程组优先级), PRIO_USER (译注:获取用户进程优先级)或 PRIO_PROCESS(译注:默认值;获取进程优先级)三者之一。

返回值

pcntl_getpriority() 返回进程的优先级或在错误时返回 FALSE 。 值越小代表优先级越高。

Warning

此函数可能返回布尔值FALSE,但也可能返回等同于 FALSE 的非布尔值。请阅读 布尔类型章节以获取更多信息。应使用===运算符来测试此函数的返回值。

参见

pcntl_setpriority() - 修改任意进程的优先级

PHP:pcntl_setpriority()的用法_PCNTL函数 pcntl_setpriority(PHP5)pcntl_setpriority修改任意进程的优先级说明boolpcntl_setpriority(int$priority[,int$pid=getmypid()[,int$process_identifier=PRIO_PROCESS]])pcntl_setpriority()设置进

PHP:pcntl_exec()的用法_PCNTL函数 pcntl_exec(PHP4=4.2.0,PHP5)pcntl_exec在当前进程空间执行指定程序说明voidpcntl_exec(string$path[,array$args[,array$envs]])以给定参数执行程序。参数pathpath必须时可执行二

PHP:pcntl_get_last_error()的用法_PCNTL函数 pcntl_get_last_error(PHP5=5.3.4)pcntl_get_last_errorRetrievetheerrornumbersetbythelastpcntlfunctionwhichfailed说明intpcntl_get_last_error(void)Warning本函数还未编写文档,仅有参数列表

本文链接地址:https://www.jiuchutong.com/biancheng/284726.html 转载请保留说明!

上一篇:PHP:pcntl_signal_dispatch()的用法_PCNTL函数

下一篇:PHP:pcntl_setpriority()的用法_PCNTL函数

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络