Bash shell 简单的并行任务,并等待
2015-09-09 11:56
615 查看
首先启动两个command line对于实验
第一 command line 依次输入:
bash$ sleep 10001 & [1] 38272 bash$ job1=$! bash$ sleep 10002 & [2] 44316 bash$ job2=$! bash$ wait $job1 $job2
第二个 command line 依次输入(观察 第一个 commaind line 的变化):
bash$ kill 38272 bash$ kill 44316
相关文章推荐
- shell中的重定向 1>&2 2>&1 >&2
- 【Android】Windows批处理bat,执行adb shell指令
- shell学习总结
- linux下提示bash:command not found
- VxWorks操作系统shell命令与调试方法总结
- AD-Powershell for Active Directory Administrators
- AD-Powershell for Active Directory Administrators
- shell 小脚本
- shell 脚本中 命令
- powershell的一个小游戏,看看能写几种方式出来
- shell脚本是否作为单独的一个进程执行?
- shell运算
- Vim,find,bash,Linux文件系统的特殊权限2015.8.30作业
- shell--文件操作1
- linux shell 学习时遇到的一些问题([: 11: y: unexpected operator)
- Linux Shell编程(5):整数运算
- Linux Shell编程(4): 逻辑运算符、逻辑表达式详解
- Linux Shell编程(3):数组
- Linux Shell编程(2): for while
- Linux Shell编程(1): 条件语句