Journal of Jilin University(Information Science Ed ›› 2015, Vol. 33 ›› Issue (1): 105-110.

Previous Articles    

Merge Sort Algorithm Design Based on Multi-Thread

SUN Linlin1, HOU Xiuping1, ZHU Bo1, SUN Shiming1, GAO Can2   

  1. 1. School of Computer Science and Engineering, Changchun University of Technology, Changchun 130012, China;2. The First Affiliated Hospital, Sooc
    how University, Suzhou 215006, China
  • Received:2014-04-09 Online:2015-01-24 Published:2015-03-20

Abstract:

In order to solve the traditional recursively merge sort algorithm serial execution efficiency of general problems, we used data dependence analysis methods on recursive merge sort algorithm parallelism analysis. The analysis shows that the algorithm itself has the characteristics of parallel, and multi-core processors can be used to compile OpenMp direct guidance statement on parallel processing algorithms. In case of large amount of data, use multiple threads in a multi processor system, divide the sequence into several groups and set each thread operation of a group of data in order to make the algorithm performs faster. Finally, the research merged a plurality of partial results which were ordered. Experiment result shows that this method of parallel algorithm can improve the speed of execution of the algorithm.

Key words: merge sort, multicore and multithread, OpenMp, data dependence, parallelization

CLC Number: 

  • TP39