标记包含关于时间量开始时gc线程优先级的信息。
The tag contains information about the priority of the GC thread when the quanta began.
讨论线程优先级及它们如何影响线程调度。
Discusses thread priorities and how they affect thread scheduling.
一共有 256种线程优先级(从 0到 255)。
可预测性:线程优先级监管执行的次数,执行时间一致。
Predictability: Thread priorities govern the order of execution, and execution times are consistent.
运行队列是由运行线程所组成的列表,按照线程优先级的值进行排序。
A run queue is a list of runnable threads, sorted by thread priority value.
这是一个线程优先级设置的例子,可以学习怎样控制线程。
This is a thread priority setting an example, you can learn how to control the thread.
这部分内容介绍了如何更改用于计算每个线程优先级值的CPU调度参数。
This section shows how you can change some of the CPU scheduling parameters, which are used to calculate the priority value for each thread.
本文通过讨论如何管理线程优先级和优先级序列来描述RTSJ线程化和同步。
This article describes aspects of RTSJ threading and synchronization by discussing how thread priorities and priority queues are managed.
系统上的每个CPU都有自己专用的运行队列,该队列是按线程优先级值排序的可运行线程的列表。
Each CPU on a system has its own dedicated run queue, which is a list of runnable threads sorted by thread priority value.
在进行该操作时,您实际上通过更改进程的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.
在5.0发行版中,针对Solaris平台的线程优先级实现方式做了一些修改,返回到一种更原始的行为上。
With the 5.0 release, the thread priority implementation for the Solaris platform changed somewhat, reverting to an older behavior.
Linux核心可以根据静态控制(如线程优先级级别)和系统中执行的线程的某些动态条件下来执行线程调度。
The Linux kernel performs thread scheduling based on static controls, such as thread priority levels, and on certain dynamic conditions of the threads executing in the system.
为此,我们将轮询线程的线程优先级设置为38(最高的RT 优先级),将筛选池线程的优先级设置为 37。
To do this, we set the thread priority of the polling threads to 38 (the highest RT priority) and the priorities of the triage pool threads to 37.
您已经了解了如何更改进程的优先级,那么对于线程又该如何操作呢?
Now that you know how to change the priority of processes, how do you do this with threads?
给予轮询线程最大优先级,从而最小化丢失度量结果的风险。
Give the polling threads maximum priority to minimise the risk of missing a measurement.
那么,为什么不提高写线程的优先级?
使用 Linux系统调用setpriority()来设置或者修改普通进程和线程的优先级层次。
The Linux system call setpriority() is used to set or modify priority levels for normal processes and threads.
将id设置为0来修改当前进程(或线程)的优先级。
Set id to 0 to change the current process (or thread) priority.
这个输出可通过考虑rt线程的优先级来解释。
This output is explained by considering the priorities of the RT threads.
就是说,优先级继承需要对一组线程进行优先级提高和降低。
That is, priority inheritance could require priority boosting and deboosting of a group of threads.
在这种情况下,低优先级线程和另一个线程都会被提高优先级。
In this case, the low-priority thread and that other thread are boosted.
一个优先级系统可以只对“高优先级”线程投入比低优先级线程更多的注意力。
One priority system could simply devote more attention to "high-priority" threads than to low-priority ones.
在RT系统中必须小心地管理同步,以防止高优先级线程等待低优先级线程的情况发生。
Synchronization must be carefully managed within a RT system to prevent high-priority threads from waiting for lower-priority threads.
无优先级反转:高优先级的线程不会因中优先级线程正在运行,而被持有其所需锁的低优先级线程阻塞。
No priority inversions: High-priority threads cannot be blocked by low-priority threads holding locks they need because medium-priority threads are running.
优先级为6的线程:此线程执行的动作与优先级为4的线程相同。
A thread at priority 6: This thread performs the same actions as the thread at priority 4.
来自高优先级矢量的微线程先得到服务,随后是来自正常优先级矢量的微线程。
Tasklets from the high-priority vector are serviced first, followed by those on the normal vector.
优先级继承确保了在高优先级线程需要的资源被低优先级线程占用时,避免发生优先级反转。
Priority inheritance ensures that priority inversion is avoided when a higher-priority thread needs a resource held by a lower-priority thread.
为线程提供的时间量取决于给线程指定的优先级。
The time quantum given to a thread depends on the thread's assigned priority.
在刚刚描述的场景中,发生锁争用时低优先级的线程以高优先级运行,直至线程释放锁。
In the scenario just described, the low-priority thread runs at high priority when lock contention occurs until the point in time that it releases the lock.
在刚刚描述的场景中,发生锁争用时低优先级的线程以高优先级运行,直至线程释放锁。
In the scenario just described, the low-priority thread runs at high priority when lock contention occurs until the point in time that it releases the lock.
应用推荐