核心i7中的多线程优势优于多线程

核心i7中的多线程优势优于多线程

本文介绍了核心i7中的多线程优势优于多线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
在阅读了有关多核处理器的并行编程之后,我有一些疑问.

Hi All,
After reading about parallel programming by multicore processor,I have some doubts.

  1. 无疑是X-Box游戏台的最佳主意[因为它们有很多核心]
    但是,对于在Windows 7 64位操作系统中运行8个并行进程然后运行100个线程的核心i7来说,它是否有效?
  2. 如果有人设法通过较少的关键资源设法使所有进程并行运行,那么它将如何?
  3. 如果没有,那么它可以提供更好的性能?
  4. 在这种情况下,我可以看到多核编程[我正在使用Open MP尝试VC ++]在i7,win 7 [64位]中赢得了多线程, 4GB内存?
  1. Its undoubtedly best idea for play stations,X-Box [as they have soo... many cores]
    But will it prove to be effective for core i7 running 8 parallel process then running 100 thread in Windows 7 64 bit?
  2. If some how its managed to make all the process running parallel with less critical resource to then will it give better performance over 100 thread?
  3. If not then in which case I can see multicore programming[I am trying VC++ with Open MP] winning over multi thread in my i7,win 7[64 bit] ,4GB ram?



如果我可以用C ++或JAVA的代码在我的机器上运行以比较正在运行的相同任务,那将是很好的

  • 平行
  • 序列
  • 线程


  • It will be great If I can get a code in C++ or JAVA to run in my machine to compare same task running

    • parallel
    • sequence
    • thread
    • 推荐答案



      1. XBox,PS3实际上只有几个核心,例如PC.
        • PS3-8用于单元,在PS3变体中实现6.
        • Xbox360-3用于PowerPC Xenon

      1. XBox, PS3 actually only have a couple of cores, like PCs.
        • PS3 - 8 for the cell, 6 as implemented in ps3 variants.
        • Xbox360 - 3 for the PowerPC Xenon



      游戏中Point3的一个例子-当我创建一个应用程序以同时下载rss feed时,线程数可能会从1增加到大约15.我要做的就是生成新线程.这些线程在我的i3的2个物理核心和所有4个逻辑处理器上均执行,而没有我的任何指示.所以我的意思是,在i7中,只要有多线程就绪,就几乎可以肯定(或可以肯定?)采用多核处理.

      由于主内存现在以GB为单位进行度量,因此缓存内存仍仅以个位数MB进行度量-缓存通常是最常占用资源的资源.我的理解是,多个进程将比多线程更快地吞噬缓存.就闲置cpu周期而言,缓存丢失通常非常昂贵,因此要努力减少缓存丢失. -现代cpus经常具有以cpu速度运行的缓存,而主内存甚至从未接近此数字.

      真正广泛而有趣的研究主题.



      An example of point3 in play - when I create an app to perform simultaneous download of rss feeds, the number of threads may go from 1 to about 15. All I do is spawn new threads. These threads execute on both of the 2 the physical cores in my i3, and all 4 of the logical processors without any direction from me. So my point is, in the i7 whenever you''ve got multi-threading in place, you''re almost certainly (or certainly?) employing multi-core processing.

      Because the main memory is now measured in GB, yet the cache memory is still only measured in single-digit MBs - the resource that will be most often taxed is the cache. It''s my understanding that multiple processes will eat-up the cache much faster than multiple threads. Cache-misses are generally very expensive in terms of idle cpu-cycles, hence the effort taken to reduce them. - Modern cpus often have cache memory that runs at cpu speed, while main memory is never even close to this figure.

      Truly broad and interesting topic for study.


      这篇关于核心i7中的多线程优势优于多线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 17:29