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 901855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:37:28+00:00 2026-05-15T15:37:28+00:00

I am using multiprocessing module. This module is works on Queue that is its

  • 0

I am using multiprocessing module. This module is works on Queue that is its pick random process and assign the entery from Queue.

I want to decide which process will work on which entry of Queue

Here is my requirements,

I will pass 2 parameters to queue

  1. Initiator Process name
  2. Action/method ( What process is going to do)

Its should pass queue Entry to given Process only.

  • 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-15T15:37:29+00:00Added an answer on May 15, 2026 at 3:37 pm

    multiprocessing.Process objects take an optional name argument on initialization. You can use that name as a key in a dictionary:

    child_procs = {'name1' : Process(target=myprocfunc, name='name1'), ...}

    As for IPC between the parent process and the children, you should be fine with just maintaining a separate multiprocessing.Queue for each child process. You’ll need a task distribution object/function to assign work. This function would probably be responsible for popping the task from the main/central queue and then assigning it to the correct child process queue (based on the architecture I am gleaming from your question).

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

Sidebar

Related Questions

I am using Python's multiprocessing module to process large numpy arrays in parallel. The
I've created a script that by default creates one multiprocessing Process; then it works
I am having trouble with the Python multiprocessing module. I am using the Process
From within a Python GUI (PyGTK) I start a process (using multiprocessing). The process
(I'm using the pyprocessing module in this example, but replacing processing with multiprocessing should
I am using the Python multiprocessing module to place objects onto a queue and
This (enormously simplified example) works fine (Python 2.6.6, Debian Squeeze): from multiprocessing import Pool
Suppose I have a python script called my_parallel_script.py that involves using multiprocessing to parallelize
I have been using this link to learn about multiprocessing, but I'm stuck on
When using python-daemon , I'm creating subprocesses likeso: import multiprocessing class Worker(multiprocessing.Process): def __init__(self,

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.