摘要
随着四核微机走向市场和八十核处理器在实验室研制成功,多核正引领软件研发发生基础性变化。开发人员需要在代码中添加线程来利用系统所提供的多个内核,从而提升PC应用软件的功能和性能。本文探讨在多核微机上进行并行计算的实现技术,介绍基于基本线程类的多线程类的设计,包括属性、方法和事件的设计,着重探讨多个线程的同步核互斥问题。在基于多线程类的基础上,简要探讨VCL控件和ActiveX控件的实现方法。最后,展望了高性能并行计算软构件库的开发前景。
Along with the four-core PC entering market and the success of eighty-core processor in laboratory, multi-core technology is leading software to have baisic changed. Developers need to add threads to use multi-core supphed by system, and thus to promote the performance of applicaton software. This paper discusses how to implement parallel computation in multi-core comput- ers, and introduces the design of multi-threads class based on threads class, including the design of attributes, methods and e- vents, and pay more attention to the resolution of synchronization and mutex problems. Based on multi-threads class, the development of VCL and ActivcX is introduced simply. At last, this paper also simply discusses the foreground for the development for the components of parallel computation in the futrue.
出处
《计算机与现代化》
2009年第11期108-111,共4页
Computer and Modernization