摘要
针对分布式系统软件的计算性能和网络性能需求,分析适用于SMP结构的OpenMP并行编程方法,并提出一种支持并行计算的分布式构件模型。进一步针对多线程在操作系统调度下的无序迁移问题,分析OpenMP规范中线程绑定技术原理,设计计算构件中线程绑定接口的实现方案。采用计算与通信分离的思想,设计独立的计算与通信基本构件,并给出TCP连接子的具体设计方案。通过实验对比验证了线程绑定机制可以改善软件的并行性能及TCP连接子的可行性。
Aiming at the requirement of distributed system in computation and network performance,in the paper we analyse the OpenMP parallel programming method suitable for SMP structure and put forward a kind of distributed component model with parallel computing support.Moreover,aiming at the problem of unordered migration of multithreads in operating system scheduling,the rationale of thread affinity technique in OpenMP criterion is analysed,and the implementation scheme of its interface in computer component is designed as well.By separating the computation from communication,the independent computing component and communicating component are also designed,and the specific design scheme of the connector using TCP is represented.Through the experiments,we have compared and verified that the thread affinity mechanism is able to meliorate the parallel performance of software and the feasibility of TCP connector.
出处
《计算机应用与软件》
CSCD
北大核心
2013年第3期203-206,共4页
Computer Applications and Software
关键词
分布式系统
构件模型
SMP
OPENMP
线程绑定
Distributed system Component model Symmetric multi-processor(SMP) OpenMP Thread affinity