Which multiprocessing methods use shared memory?

MRAB python at mrabarnett.plus.com
Tue Jul 27 15:30:12 EDT 2010


Kevin Ar18 wrote:
> I'm not sure my previous message went through (I wasn't subscribe), so I'm gonna try again.
> 
> The multiprocessing module has 4 methods for sharing data between processes:
> Queues
> Pipes
> Shared Memory Map
> Server Process
>  
> Which of these use shared memory?
>  
> I understand that the 3rd (Shared Memory Map) does, but what about Queues?
>  
The documentation says:

"""class multiprocessing.Queue([maxsize])
Returns a process shared queue implemented using a pipe and a few 
locks/semaphores. When a process first puts an item on the queue a 
feeder thread is started which transfers objects from a buffer into the 
pipe."""



More information about the Python-list mailing list