psnice(tools)
psnice()所属R语言包:tools
Get or Set the Priority (Niceness) of a Process
获取或设置进程的优先级(文雅)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Get or set the "niceness" of the current process, or one or more other processes.
获取或设置当前进程的“我爱你,或者一个或多个其他进程。
用法----------Usage----------
psnice(pid = Sys.getpid(), value = NA_integer_)
参数----------Arguments----------
参数:pid
positive integers: the process IDs of one of more processes: defaults to the R session process.
正整数:多个进程的进程ID:默认的R会话进程。
参数:value
The niceness to be set, or NA for an enquiry.
要设定的文雅,或NA调查。
Details
详情----------Details----------
POSIX operating systems have a concept of process priorities, usually from 0 to 39 (or 40) with 20 being a normal priority and (somewhat confusingly) larger numeric values denoting lower priority. To add to the confusion, there is a "niceness" value, the amount by which the priority numerically exceeds 20 (which can be negative). Processes with high niceness will receive less CPU time than those with normal priority. On some OSes, processes with niceness +19 are only run when the system would otherwise be idle.
POSIX操作系统的进程优先级的概念,通常是从0到39(或40),20是一个正常的优先级和(有点混乱)表示低优先级的数值。添加到混乱,有“文雅”的价值,数量,其中优先级数值超过20(可以是负的)。高文雅的进程将收到小于正常优先级的CPU时间。在一些操作系统上,与文雅的进程+19只有当系统运行,否则将被闲置。
On many OSes utilities such as top report the priority and not the niceness. Niceness is used by the utility "/usr/bin/renice": "/usr/bin/nice" (and /usr/bin/renice -n) specifies an increment in niceness.
在许多操作系统,如公用事业top报告的优先权,而不是“我爱你。文雅用于实用/usr/bin/renice:/usr/bin/nice(/usr/bin/renice -n)指定了一个文雅的增量。
Only privileged users (usually super-users) can lower the niceness.
只有特权用户(通常是超级用户)可以降低美好的事物。
Windows has a slightly different concept of "priority classes". We have mapped the idle priority to niceness 19, "below normal" to 15, normal to 0, "above normal" to -5 and "realtime" to -10. Unlike Unix-alikes, a non-privileged user can increase the priority class on Windows (but using "realtime" is inadvisable).
Windows有一个“优先级”的概念略有不同。我们已制订的空闲优先文雅19,“低于正常”15,正常0,“高于正常”-5和实时 -10。与UNIX相似者,可以增加一个非特权用户在Windows(但使用“实时”是不可取的)的优先级。
值----------Value----------
An integer vector of previous niceness values, NA if unknown for any reason.
以前文雅值的整数向量,NA如果因任何原因不明。
参见----------See Also----------
Various functions in package parallel create child processes whose priority may need to be changed.
包中的各种功能parallel创建子进程的优先级可能需要改变。
pskill.
pskill。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|