多線程歸併排序

歸併排序是典型的分治算法,因此能夠用多線程來解決,在Linux平臺上進行多線程編程,必須在編譯時連接Linuxthread庫,以下圖所示:算法 由於比較簡單,就直接上代碼了,講各類排序的博客也比較多。編程 #include <stdio.h> #include <pthread.h> #include <stdlib.h> #include <string.h> int *array_maste
相關文章
相關標籤/搜索