我知道有多种方法可以在python中实现IPC,例如Pipes和Queue;但是根据Python的官方文档,还有另一种方法Listener and Client。
IPC
Pipes
Queue
multiprocessing.connection.Listener非常类似于socket,并且都具有相同的功能,例如accept(),close(),send()和recv()。因此,如果我们仅关注IPC目的,那么这两个模块之间有什么区别?哪一个效率更高?
multiprocessing.connection.Listener
socket
accept()
close()
send()
recv()