Reputation: 589
I have a Multiprocessing application with a bunch of processes, I want the control thread to broadcast a message to multiple processes. If I used a pipe pair for each there will be a ton of pipes.
Is there a way to send one message to multiple processes at the same time?
Upvotes: 2
Views: 1078
Reputation: 207345
I think it depends what your actual purpose is in sending the message:
multiprocessing.Value
or a multiprocessing.Array
multiprocessing
Barrier
or Event
mosquitto
broker.Upvotes: 2