...
首页> 外文期刊>MSDN Magazine >Juice Up Your App With The Power Of Hyper-Threading
【24h】

Juice Up Your App With The Power Of Hyper-Threading

机译:利用超线程功能增强您的应用程序

获取原文
获取原文并翻译 | 示例
           

摘要

Hyper-threading technology improves CPU efficiency by allowing the processor to execute two instruction streams concurrently. This feature, found on newer Intel Pentium 4 processors, can typically improve the performance of apps by 20 to 30 percent, boosting some appsbyup to 40 percent. Unfortunately, other applications see no performance benefit, and a few can experience significant performance degradation (I've seen application degradation of as much as 20 percent), especially when violating recommended performance best practices such as the ones discussed in this article. Moreover, given the concurrency this feature introduces to single-processor computers, some multithreading bugs that may only manifest themselves on multiprocessor machines are likely to show themselves on a hyper-threaded single-CPU machine, as well. In this article, I'll explore the hyper-threading technology and demonstrate how adding parallelism to your code can improve performance on hyper-threaded machines. I'll cover advanced optimizations for hyper-threading and will show you a few useful patterns. My code samples are in C#, but the same principles apply to both managed and unmanaged applications.
机译:超线程技术通过允许处理器同时执行两个指令流来提高CPU效率。在较新的Intel Pentium 4处理器上发现的此功能通常可以将应用程序的性能提高20%到30%,将某些应用程序的性能提高40%。不幸的是,其他应用程序看不到任何性能优势,并且有些应用程序会出现明显的性能下降(我发现应用程序的性能下降多达20%),尤其是在违反建议的性能最佳实践(例如本文中讨论的最佳实践)时。此外,鉴于此功能引入了单处理器计算机的并发性,一些仅在多处理器计算机上表现出来的多线程错误也有可能在超线程单CPU计算机上显示。在本文中,我将探讨超线程技术,并演示向代码中添加并行性如何提高超线程计算机的性能。我将介绍超线程的高级优化,并向您展示一些有用的模式。我的代码示例使用C#,但是相同的原则适用于托管和非托管应用程序。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号