How to thread?

Structure the Design Phase of Threaded Application Development Cycle


Challenge

Develop a methodology for the design phase of the development cycle. Regions identified by the analysis phase are examined during the design phase to determine changes that must be made to accommodate a threading paradigm.

  • analysis
  • Multi-thread apps for Multi-Core
  • How to thread?
  • 并行计算
  • Detect Stalls Due to Exceeding Write-Combining Store Buffers on Hyper-Threading Technology-Enabled Systems


    Challenge

    Determine whether performance degradation (or lower-than-expected performance benefit) from Hyper-Threading Technology is due to exceeding the write-combining buffer capacity. A write-combining (WC) store buffer accumulates multiple stores in the same cache line before eventually writing the combined data farther out into the memory hierarchy, to accelerate processor write performance.

  • Multi-thread apps for Multi-Core
  • How to thread?
  • Performance analysis
  • 并行计算
  • Choose the Right Threading Model (Task-Parallel or Data-Parallel Threading)


    Challenge

    Choose task-level or data-parallel threading for various parts of an application. Choosing the right threading method minimizes the amount of time spent modifying, debugging, and tuning threaded code.


    Solution

    Describe your application (or an individual operation in that application) in terms of one of two models based on fit for the particular job:

  • analysis
  • Multi-thread apps for Multi-Core
  • How to thread?
  • 并行计算
  • Use Instructions Retired Events to Evaluate Threading Methodology


    Challenge

    Evaluate instructions-retired data in conjunction with performance data to examine the correctness of threading methodology. The Instructions Retired processor event in the VTune™ Performance Analyzer is a key performance indicator. Instructions Retired can give you quick insight into possible performance problems in your application.

  • Microsoft Windows* (XP, Vista, 7)
  • 英特尔® VTune™ 放大器
  • Multi-thread apps for Multi-Core
  • How to thread?
  • Performance analysis
  • 并行计算
  • Win32 Functions to Create, Suspend, and Terminate Threads

    Apply procedures provided by the Microsoft Win32 API to create, suspend, resume, and terminate threads. Context switching in a multithreaded application is cheaper than context switching of multiple processes, because switching processes carries a lot more overhead than switching threads.
  • 开发人员
  • Microsoft Windows* (XP, Vista, 7)
  • synchronization
  • Multi-thread apps for Multi-Core
  • How to thread?
  • 并行计算
  • 订阅 How to thread?