常规用户启动的进程优先级一般是0。
线程最终的绝对优先级是线程相对优先级和进程优先级的和。
The resulting absolute priority of a thread is the sum of this relative priority value and the priority value of its owning process.
langpackage提供了线程类,支持开始,停止进程,设置进程优先级等等。
The java.lang package provides a thread class that supports methods to start and stop threads and set thread priorities, among other things.
访问相机子系统的资源包括打开和配置相机设备,是基于客户端(访问者)进程优先级。
Access to camera subsystem resources, including opening and configuring a camera device, is awarded based on the "priority" of the client application process.
您已经了解了如何更改进程的优先级,那么对于线程又该如何操作呢?
Now that you know how to change the priority of processes, how do you do this with threads?
它与其进程的优先级没有依赖关系。
您可以为进程指定一个绝对优先级(不是调整值),进程的更改如清单10 所示。
You specify an absolute priority (and not an adjustment) for the process or processes to be changed as shown in Listing 10.
但是在某些情况下,可能必须要为这些进程赋予不同的优先级。
In some circumstances, however, these processes may have to be given different priority.
在数组中,放在前面的进程拥有更高的优先级。
A process that is placed earlier in the array has a higher priority.
负载平衡:调度器会降低那些超出处理器负载能力的进程的优先级。
Load balancing: the scheduler will decrease the priority of any process that generates more load than the processor can handle.
如果派生进程是一个JVM,则JVM的原始线程创建时具有RT优先级。
If the forked process is a JVM, the primordial thread of the JVM is created with an RT priority.
气象数据进程负责把收集到的气象数据放到数据总线上,运行不频繁,是低优先级进程。
The meteorological data gathering task ran as an infrequent, low priority thread, and used the information bus to publish its data.
bgnice:在后台以更低的优先级运行所有进程。
Bgnice: Run all processes in the background at a lower priority.
在进行该操作时,您实际上通过更改进程的nice值,从而更改了线程优先级的值(缺省值为40)。
When you do this, you actually change the value of the priority of a thread (default value of 40) by changing the nice value of its process.
清单1中的ni列展示了调度优先级或者说每个进程的niceness。
The ni column in Listing 1 above, shows the scheduling priority or niceness of each process.
不论activity发生什么情况,使用服务可以保证操作至少拥有“服务进程”的优先级。
Using a service guarantees that the operation will have at least "service process" priority, regardless of what happens to the activity.
使用 Linux系统调用setpriority()来设置或者修改普通进程和线程的优先级层次。
The Linux system call setpriority() is used to set or modify priority levels for normal processes and threads.
dwPriorityClass是进程的优先级等级,它可以设置为下列值中的任意一个。
DwPriorityClass is the priority class of the process, and it is set to any of the following values.
使用renice命令(通过Procmon或者命令行)可以使得系统为给定的进程分配一个更高的或者更低的优先级。
Using the renice command (either through Procmon or from the command line) can cause the system to either assign a higher or lower priority to a given process.
nice命令还可以用来启动具有不同优先级的进程。
The nice command can also be used to start a process with a different priority.
记住,您必须是超级用户才能为进程指定更高的调度优先级,或者说让它们的nice值更低。
Remember that you have to be the superuser to give your processes higher scheduling priority and make them less nice.
nice和Renice——这些值可以更改正在运行的进程的优先级。
Nice and Renice — These change the priority of running processes.
您可以使用nice命令调整给定进程的优先级。
Usage of the nice command allows you to adjust the priority of a given process.
将id设置为0来修改当前进程(或线程)的优先级。
Set id to 0 to change the current process (or thread) priority.
现在我们可以让CPU 持续忙碌一段时间,我们了解如何设置进程的优先级。
Now that we can keep a CPU busy for a while, we'll see how to set a priority for a process. To summarize what we've learned so far
进程的优先级和优先值。
您还可以使用renice命令(前面在介绍Procmon 的图3中对该命令进行了说明),以便动态地为一个运行的进程重新分配优先级。
You can also use the renice command (illustrated previously with Procmon in Figure 3) to dynamically reassign a priority to a running process.
其他的一些菜单允许您kill进程(终止进程)或者renice它们(重新调整进程的优先级),请参见图3。
Other menus allow you to either kill processes or renice them (see Figure 3).
受控制的进程的优先级是由进程在数组中的位置索引决定的。
The priority of a controlled process is determined by its position index in the array.
受控制的进程的优先级是由进程在数组中的位置索引决定的。
The priority of a controlled process is determined by its position index in the array.
应用推荐