...择进程的依据主要有进程的调度策略(policy)、静态优先级(priority)、动态优先级(counter)、以及实时优先级(rt-priority)四个部分。首先,Linux从整体上区分为实时进程和普通进程,二者调度算法不同,实时进程优先于普通进程运行。
基于6个网页-相关网页
max rt priority 指定最大的运行优先级
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.
为此,我们将轮询线程的线程优先级设置为 38(最高的 RT 优先级),将筛选池线程的优先级设置为 37。
Also, programs that monitor system state or provide system login should run at high RT priority so that the program is allowed to preempt the problematic threads.
另外,监控系统状态或提供系统登录的程序应该以高rt优先级运行,以便程序可以抢占问题线程。
A dispatched thread with an RT priority is allowed to execute until it blocks, voluntarily relinquishes control by yielding, or is preempted by a thread with a higher RT priority.
具有RT优先级的调度线程可以一直执行直至阻塞,通过让步自愿放弃控制权,或被具有更高rt优先级的线程抢占。
应用推荐