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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.