Reword IPC section

This commit is contained in:
Antoine Pitrou 2011-12-05 01:43:32 +01:00
parent 8345451170
commit 8e644f0e7c
1 changed files with 6 additions and 5 deletions

View File

@ -123,12 +123,13 @@ IPC
--- ---
If you need fast IPC between two processes on one machine, you should look into If you need fast IPC between two processes on one machine, you should look into
whatever form of shared memory the platform offers. A simple protocol based pipes or shared memory. If you do decide to use AF_INET sockets, bind the
around shared memory and locks or semaphores is by far the fastest technique. "server" socket to ``'localhost'``. On most platforms, this will take a
shortcut around a couple of layers of network code and be quite a bit faster.
If you do decide to use sockets, bind the "server" socket to ``'localhost'``. On .. seealso::
most platforms, this will take a shortcut around a couple of layers of network The :mod:`multiprocessing` integrates cross-platform IPC into a higher-level
code and be quite a bit faster. API.
Using a Socket Using a Socket