- 链接地址:https://blog.csdn.net/weixin_30916125/article/details/95107583
- 链接标题:python学习笔记 day37 管道Pipe (IPC机制----进程之间互相通信)-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:7032
文章浏览阅读100次。1. 管道支持双端通信,但是数据不安全,没有加锁from multiprocessing import Pipel,r=Pipe() # 实例化一个管道l.send("hello,xuanxuan") # 管道的一端(l)发送数据print(r.recv()) # 管道的另一端(r)接收数据r.send("hello,xixi") # r端发送数据print(...
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除