“实时"过程优先级设置是什么? [英] What is the 'realtime' process priority setting for?

查看:1194
本文介绍了“实时"过程优先级设置是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据我过去所读的内容,建议您不要以编程方式更改Windows应用程序的优先级,如果这样做,则永远不要将其更改为实时".

From what I've read in the past, you're encouraged not to change the priority of your Windows applications programmatically, and if you do, you should never change them to 'Realtime'.

与高"和高于正常"相比,实时"过程优先级设置有何作用?

What does the 'Realtime' process priority setting do, compared to 'High', and 'Above Normal'?

推荐答案

实时优先级线程永远不会被计时器中断抢占,并且以比系统中任何其他线程更高的优先级运行.这样的CPU绑定的实时优先级线程可能会完全破坏一台计算机.

A realtime priority thread can never be pre-empted by timer interrupts and runs at a higher priority than any other thread in the system. As such a CPU bound realtime priority thread can totally ruin a machine.

创建实时优先级线程需要特权( SeIncreaseBasePriorityPrivilege ),因此只能由管理用户完成.

Creating realtime priority threads requires a privilege (SeIncreaseBasePriorityPrivilege) so it can only be done by administrative users.

对于Vista及更高版本,确实要求它们以实时优先级运行的应用程序的一种选择是使用

For Vista and beyond, one option for applications that do require that they run at realtime priorities is to use the Multimedia Class Scheduler Service (MMCSS) and let it manage your threads priority. The MMCSS will prevent your application from using too much CPU time so you don't have to worry about tanking the machine.

这篇关于“实时"过程优先级设置是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆