I have two Python processes that need to communicate with each other on POSIX complaint system, as an IPC I thought that using a named pipe would be the easiest solution, however since I'm new with Python I suspect there are more options available. Anyone care to make a recommendation, besides a named pipe?
Thanks in advance,
John
I would recommend you sticking with named pipes
, if the system is POSIX compliant. That being said, there are plenty of options, you could, open a tcp socket and send pickled data, but performance, you would not beat shared memory/named pipe, and why look for a "new" solution if there already exists well defined working solutions?
You could also look at this module , seems to be using shared memory, I have not tried it but it looks like an option.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.