2015年4月1日 星期三

Linux script multithread method

#!/usr/bin/tcsh

echo "start"
./ex one &
./ex two &
wait
echo "OK"

=======================================================================
ex為執行程式
one,two為引數
wait為同步化
&代表spawn一個thread

沒有留言:

張貼留言