Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6130411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:51:19+00:00 2026-05-23T16:51:19+00:00

I’d like to write python code that loads a data set as input and

  • 0

I’d like to write python code that loads a data set as input and analyzes it.

There will be 5 parallel processes that will analyze the data — each process will be processing the data differently — in a unique way.

Before any processing will begin, the master script (the one that will ‘start’ all the different sub-processes) will define an empty list.

I’d like all the different processes to write their output to the same list mentioned above (meaning, each one of the processes will be able to directly manipulate the list that was defined in the master script).

Meaning, if process1 changed the first value of that list, all the other processes (while running) will see that the first value of that list has changed.


I get a sense that 2 different python modules can be used to solve this problem: multiprocessing and zeroMQ.

Are there any reasons to prefer one vs. the other in this case? does your answer change if — instead of running the master script on the same server — I will be splitting the processes between different (multiple) servers?

(if it at all matters, I am using a Linux)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:51:20+00:00Added an answer on May 23, 2026 at 4:51 pm

    If these are your only two choices and you know for sure that you’re going to be distributing your load across multiple machines, ZeroMQ is the only one of the two choices that fits the bill.

    The Python multiprocessing module is for distributing load across processes/cores on a single machine. As far as I know, there is no networked protocol underlying the multiprocessing module and this is indicated by the first paragraph in the accompanying documentation.

    ZeroMQ can be used for similar inter-process messaging on a single machine with its IPC protocol, but it also has network-based protocols that allows you to send messages between processes running on different machines as well.

    That said, this question has the slight tinge of a an XY problem since you seem to have arbitrarily narrowed your choices to only two of the many, many possibilities for implementing a distributed program using Python.

    Edit My answer here was incorrect and I can’t delete an accepted answer, so converting it to a wiki in case anyone wants to correct it. Short story is I misread the documentation in haste. Python multiprocessing does support inter-process communication over a network boundary. One major difference with ZeroMQ is that ZeroMQ is designed to be platform agnostic so you could mix client/server agents on different platforms whereas Python multiprocessing is a batteries included option if client/server processes are coupled to Python.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
I have some data like this: 1 2 3 4 5 9 2 6
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a French site that I want to parse, but am running into
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I need to clean up various Word 'smart' characters in user input, including but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.