`
ganliang13
  • 浏览: 249624 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

shell的并发

阅读更多

#!/bin/bash
date;echo "=========begin"
for ((i=0;i<5;i++));do
 {
 sleep 3;echo "done"
 }&
done
wait
date;echo "=========end"

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics