在C#中的核心上手动设置任务 [英] set manually task on cores in c#
本文介绍了在C#中的核心上手动设置任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在c#
推荐答案
的内核上手动设置任务,请在此处查看我的详细答案:
如何对多核进行编程 [
Please see my detailed answer here:
How to program multicore[^].
With .NET, you can useSystem.Threading.Thread.BeginThreadAffinity/EndThreadAffinity
, for compact Framework —System.Threading.Thread.SetProcessorAffinity
.
Again, you can do it if your absolutely sure what are you doing. It can make more hard than good.
Good luck,
—SA
^ ]是您的答案.
这篇关于在C#中的核心上手动设置任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文