| 摘要: |
| 对象具有内在的并行性.将面向对象程序设计与分布并行处理相结合,可产生既具有面向对象特征,又充分利用资源,还可缩短作业运行时间的对象分布并行系统.提出了一种基于PVM(parallelvirtualmachine)的C++对象的分布并行机制.该机制以协议和pvmlib作了向后兼容扩充的PVM系统为对象分布并行支撑;用预处理器将用户作业的并行类分离,并派遣到(PVM)系统中的目标机进行异地编译、加载执行;通过把并行类映射为PVM任务,请求对象消息映射为请求PVM任务消息来实现并行类对象的分布并行.实验结果表明,此对象分布并行机制(当问题规模达到一定程度时)可提高系统资源利用率和程序运行效率,并能简化PVM应用编程. |
| 关键词: PVM(parallelvirtualmachine) 面向对象 分布并行 |
| DOI: |
| 分类号: |
| 基金项目:国家自然科学基金资助项目(69871005);国家“九五”国防预研基金资助项目 |
|
| Preliminary Research on C++ Object Distributed-Parallel Mechanism Based on PVM |
|
LI Yi,ZHOU Ming-tian,YU Jue-bang
|
| Abstract: |
| The object possesses inherent parallelity. Combination of object-oriented programming with distributed-parallel processing will bring about object-oriented distributed parallel system, not only having object-oriented property but also making better use of system resources and shortening user's computing time as well. In this paper, a novel C++ object distributed-parallel mechanism is proposed based on PVM (parallel virtual machine). The object distributed-parallel mechanism is supported by the PVM system whose protocol and pvmlib have been made backward compatible extension. It uses preprocessor to separate the parallel-classes from user's job program and dispatches them to host computers in PVM to compile and run there. Through mapping parallel-class to PVM task, request object message to request PVM task message, the mechanism implements object distributed-parallelism of the parallel-class. The results of the experiment show that (when the size of question is big enough) the mechanism may make better use of the system resource, run user program efficiently, and simplify the PVM application programming. |
| Key words: PVM (parallel virtual machine) object-oriented distributed-parallel |