New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第三章第7小节管道实现进程通信部分 #90
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
函数create_items、multiply_items部分无注释,看了好久才明白。
第一个费解的地方
pipe_1 = multiprocessing.Pipe(True)
,不知道这个Pipe具体干了什么的,查看源码后发现就是弄了两个队列,然后建立连接,至于至于send,就是使用的Queue的put函数,recv就是使用的Queue的get函数,用两个队列实现双工。自己写了一下文中的实现,p1_a与p1_b是一组能够通信的,p2_a与p2_b是一组互相能通信的
The text was updated successfully, but these errors were encountered: