针对启发式智能优化算法的特点,为提高算法的优化效率,以消息队列机制为基础提出了一种多线程并行计算技术。讨论了多线程并行计算的模型及原理,介绍了多线程之间通过消息队列相互通信的同步控制技术。通过气动优化问题在不同线程数目下并行计算的比较,表明消息队列可以简化线程间的通信过程,显著提高计算效率,具有一定的实用价值。
Aiming at the feature of heuristic intelligent optimization algorithms ,and to improve the optimization efficiency ,this paper proposes a parallel computing method based on message queue technique .Additionally ,the model and principle of multithreading parallel calculation is discussed ,and measures of the communication and synchronous control among all the threads through message-queue is explained in detail.Comparing the results of aerodynamic optimization problem under different threads ,the results show that message queue can simplify the communication process between threads and improve the efficiency of calculation effectively .It is proven of high engineering value .