Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shared queues
#1
Hi,

I am trying to share a multiprocessing dictionary (Manager().dict()) of multiprocessing Queues (Manager().Queue()) between multiple python instances/processes (keys are strings).

I am running in circles and am always being stopped by something, can someone help me with this?

Thank you!
Reply
#2
Please, post your code in python tags, as well as full traceback in error tags if you get any exceptions.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Let me rephrase:
Is it possible to create Manager().dict() of Manager().Queue() values with string as a key, and have it working across multiple instances/processes?
Reply
#4
You can put a dict created by manager into the queue, but also a regular dict.
You can't put a queue into a dict.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Shared reference of variables... Denial 1 1,374 Aug-29-2020, 01:52 PM
Last Post: snippsat
  How to install and use a shared libary, via a .dll? ninjaisfast 0 1,271 Jul-09-2020, 03:23 PM
Last Post: ninjaisfast
  Divisors shared the second numbers mircea_dragu 1 2,015 Feb-07-2019, 10:09 PM
Last Post: ichabod801
  running just one process shared among uses Skaperen 3 2,924 Aug-07-2018, 12:12 AM
Last Post: Skaperen
  Shared reference and equality zyo 3 3,096 Jun-30-2018, 07:10 PM
Last Post: ljmetzger
  Multithreading with queues - code optimization h1v3s3c 1 2,625 May-10-2018, 10:40 AM
Last Post: ThiefOfTime
  two different objects, but somehow the values are shared between them RaphaelMG 6 4,046 Apr-20-2018, 05:53 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020