线程优先级相关 [英] Thread priority related

查看:79
本文介绍了线程优先级相关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

其实我试图给线程优先级,例如threadpriority.normal,threadpriority.belownormal等等....如果我启动线程,不是优先级最高的线程首先执行.... y就是这样....预先感谢...

Hi guys,

Actually i was trying to give priority to thread such as threadpriority.normal,threadpriority.belownormal so on....if i start the thread its not the thread which has given the highest priority is executing first ....y it is so....thanks in advance...

推荐答案

您无法控制哪个踏板将执行点火,优先级并非如此.但是您可以使用Sysinternals ProcessExplorer检查您的应用程序具有哪些线程,以及它们以什么优先级运行.
在这里您有一个很好的指南.
You cannot control which tread will execute firts, priority is not about that. But you can check with Sysinternals ProcessExplorer what threads your application has, and with what priority they run.
Here you have a good guide.


这篇关于线程优先级相关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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