记录一个排序算法

号称天才排序算法,据说是充分发挥了多核的优势

#!/bin/bash  
function f() {  
    sleep "$1"  
    echo "$1"  
}  
while [ -n "$1" ]  
do  
    f "$1" &  
    shift  
done  
wait  

 

参考:http://blog.csdn.net/luojiafei/article/details/7238104

posted @ 2015-11-02 15:46  fengbohello  阅读(255)  评论(0编辑  收藏  举报