for 与 ipc
来源:互联网 发布:r330清零软件 编辑:程序博客网 时间:2024/05/21 22:46
#!/usr/bin/python# Filename:using_fork.py import os, sys print "I'm going to fork now" r, w = os.pipe() pid = os.fork() if pid: # parent os.close(w) r = os.fdopen(r) print "parent: reading" txt = r.read() os.waitpid(pid, 0) else: # child os.close(r) w = os.fdopen(w, 'w') print "child:writing" w.write("here's some text from the child") w.close() print "child:closing" sys.exit(0)
jobin@jobin-desktop:~/work/python/fork$ python using_fork.pyI'm going to fork nowparent: readingchild:writingchild:closing
- for 与 ipc
- ipc - demo for pipe
- onstat命令 for ipc
- 安装ipc与libv4l2cam
- IPC与信号量
- Using Hadoop IPC/RPC for distributed applications
- AIDL与IPC学习总结
- 说说I/O与IPC
- 渗透与入侵1-ipc
- IPC 进程与软件watchdog
- System IPC 与Posix IPC(semaphore信号灯)
- IPC
- ipc$
- ipc$
- ipc$
- ipc$
- IPC
- IPC$
- 今天蛋疼的“WINDONS无法启动,找不到SYSTEM32/DRIVERS/isapup.sys”
- atoi的封装
- datagridview中添加合计行(二)
- oracle命令
- 搭建VS2008+OpenCV2.1开发环境
- for 与 ipc
- 25个Apache性能优化技巧推荐
- 我的一天我做主(Enjoy)- 5
- Nginx--HTTP反向代理服务器
- Java多线程 -- 正确使用Volatile变量
- Lubuntu proxy set
- 《ASP.NET本质论》Base64
- include,include_once和require,require_once的区别 {转}
- Android 开发者必备的十个工具(上)