Difference between queues and pipes in multiprocessing

James Mills prologic at shortcircuit.net.au
Wed Aug 4 05:44:01 EDT 2010


On Wed, Aug 4, 2010 at 7:20 PM, Navkirat Singh <navkirats at gmail.com> wrote:
> I was wondering what are the differences between queues and pipes implemented using multiprocessing python module. Am I correct if I say, in pipes, if another process writes to one receiving end concurrently, then an error will be raised and in queues the later processes data will just queued up?

basically a Queue is a syncronization primitive used to
share and pass data to and from parent/child processes.

A pipe is as the name suggests, a socket pair connected
end-to-end allowing for full-duplex communications.

cheers
James

-- 
-- James Mills
--
-- "Problems are solved by method"



More information about the Python-list mailing list