i7 多核处理器上的 .Net 3.5

发布于 2024-11-18 07:17:40 字数 79 浏览 2 评论 0原文

在 i7 多核处理器上运行 .NET 3.5 是否存在任何已知问题? .NET 框架/编译器是否自动利用多核,还是必须显式编程才能实现这一点?

Are there any known issues with .NET 3.5 running on i7 multicore processors?
Does the .NET framework/compiler automatically take advantage of the multiple cores or does it have to be explicitly programmed to do so?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

掌心的温暖 2024-11-25 07:17:40

不,没有。

至于线程 - 您必须编写代码才能使用线程。

由于您还询问了编译器 - 如果满足以下条件,您可以启用 在 MSBuild 中的多核计算机上并行构建您喜欢冒险,并且您的解决方案是否适合并行化。

No, none.

As for threading - you have to write your code to use threads.

Since you also asked about the compiler - you can enable parallel builds on multicore machines in MSBuild if you're feeling adventurous and if your solutions are suitable to be parallelized.

人间不值得 2024-11-25 07:17:40

据我所知,在 i7 上运行 .NET 3.5 没有问题。

.NET Framework 支持构建多线程应用程序,但不会因存在多个 CPU 内核而本质上改变其行为。

但是,某些应用程序主机(例如 IIS)本身是多线程的,并且能够跨多个线程分配工作负载(从而跨多个内核并行执行它们),而无需使代码具有线程感知能力。

利用多核的另一种方法是简单地运行更多进程。

你拥有一个充满可能性的世界,由你来决定如何利用它们!

There's no issue with running .NET 3.5 on an i7 that I'm aware of.

The .NET Framework has support for building multi-threaded applications, but will not inherently change its behaviour for the presence of multiple CPU cores.

However, certain application hosts, such as IIS are themselves multi-threaded and are able to distribute workloads across multiple threads (and thus, execute them in parallel across multiple cores) without you necessarily having to make your code thread-aware.

The other way to exploit multiple cores is to simply run more processes.

You have a world of possibilities and it's up to you to decide how to exploit them!

在梵高的星空下 2024-11-25 07:17:40

我有三台 i7 计算机,在所有计算机上使用 .NET 3.5 并进行编程。从来没有听说过它有问题。如果您想使用 .NET 进行编程以利用多核,我建议您查看 任务并行库。另请参阅本书使用 Microsoft .NET 进行并行编程

I have three computers with i7, using and programming .NET 3.5 on all of them. Never heard of an issue with it. If you want to program with .NET to leverage the multi-cores, I suggest looking at the Task Parallel Library. Also see this book, Parallel Programming with Microsoft .NET.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文