常规用户启动的进程优先级一般是0。
线程最终的绝对优先级是线程相对优先级和进程优先级的和。
The resulting absolute priority of a thread is the sum of this relative priority value and the priority value of its owning process.
在利用完内核漏洞后,进程优先级没有重置,这可能导致电池消耗。
Process Priority was not restored after the kernel exploit. That might have caused some battery drain.
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.
您可以在本文中提供的示例中看到此公平性,其中所有进程都被授予了对服务器的访问,即便是最低的优先级。
You can see that fairness in the example provided in this article, where all processes are given access to the processor-even the lowest 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.
内核使用收集的CPU 使用量数据,可以根据优先级、当前 CPU 使用量和 CPU 限制调度或撤消运行进程。
The CPU usage thus gathered is used by the kernel, which may schedule or de-schedule a process based on its priority, current CPU usage, and CPU limits.
气象数据进程负责把收集到的气象数据放到数据总线上,运行不频繁,是低优先级进程。
The meteorological data gathering task ran as an infrequent, low priority thread, and used the information bus to publish its data.
如果您正好启动了一个进程,但意识到它应该以不同的优先级运行,那么有一种方法可以在启动之后对其进行更改,即使用renice命令。
If you happen to start a process and realize that it should run at a different priority, there is a way to change it after it has started, using the renice command.
在进行该操作时,您实际上通过更改进程的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值更低。
Remember that you have to be the superuser to give your processes higher scheduling priority and make them less nice.
现在我们可以让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
对于在图2中添加的taskset -chrt测量集合,每个进程的所有线程都仅设置为cpu0和2 (taskset),并具有SCHED _ RR和优先级99 (chrt)。
For the taskset-chrt measurement set added in Figure 2, all of the threads of each process are set to CPU 0 and 2 (taskset) only, with SCHED_RR and a priority of 99 (CHRT).
您还可以使用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.
当一个高优先级进程或者交互式进程发生跳跃时,整个系统的性能就会受到影响。
When a bouncing process happens to be a high priority or interactive process, overall system performance is affected.
注意,JCSP以底层线程的优先级机制实现进程的优先级;所以优先级实际的工作方式取决于底层的JVM实现。
Note that JCSP implements process priorities in terms of the underlying thread's priority mechanism; so how the priorities actually work out depends on the underlying JVM implementation.
这意味着如果低优先级进程进行了系统调用后,高优先级进程必须等到调用结束后才能访问CPU。
This means that if a low-priority process makes a system call, a high-priority process must wait until that call is complete before it can gain access to the CPU.
为了确保重要的进程能够得到CPU,这种选择是基于调度优先级 进程的。
To ensure that important processes don't get starved out by CPU hogs, the selection is done based on a scheduling priority.
探路者号上的进程按照优先级来执行,优先级反映了这些进程的轻重缓急。
Tasks on the Pathfinder spacecraft were executed as threads with priorities that were assigned in the usual manner reflecting the relative urgency of these tasks.
有不同的信号量类:区分优先级,随着程序大小的增长根据活动进行特殊处理(例如,fifo次序,使用多个读进程)。
Have different kinds of semaphore classes: prioritization, specialization based on activity (for example, FIFO ordering, taking advantage of multiple readers) as the program increases in size.
有不同的信号量类:区分优先级,随着程序大小的增长根据活动进行特殊处理(例如,fifo次序,使用多个读进程)。
Have different kinds of semaphore classes: prioritization, specialization based on activity (for example, FIFO ordering, taking advantage of multiple readers) as the program increases in size.
应用推荐