Research on Thread Scheduling Algorithm in Automatic Parallelization

Sheng Yan, Yang Quan Sheng, Wang Xiao Wei, Zou Feng · 2009

This paper firstly takes fully account of the features of Intel multi-core architecture: shared cache architecture and bus interconnection architecture, and then researches on thread scheduling problem in automatic parallelization, finally proposes a greedy heuristic algorithm for thread scheduling. The greedy heuristic algorithm firstly establishes a TIG (thread interaction graph) based on data dependence and communication overhead between each thread. On this basis the algorithm carries out two rounds of operation for TIG, in which the threads are assigned to processors in the first round and the threads are assigned to groups of shared cache cores within a processor in the second round respectively. The experiment results show that greedy heuristic algorithm can find near-optimum solutions in reasonable time and behaves better than random algorithm which widely applied in the current OS and compiler when the number of threads increases, since it can find solutions in much less than random algorithm.

Read the paper · More papers on PaperTik