S
S
sharkyyy32019-12-16 10:09:30
Python
sharkyyy3, 2019-12-16 10:09:30

How to return values ​​from another process?

Good day. I need to return some values ​​from a process that I call in parallel (using the multiprocessing module). With threads, this did not cause any problems, I just used 1 shared dictionary, this does not work with multiprocessing.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2019-12-16
@sharkyyy3

IPC is generally common in all programming languages
​​return value
Shared memory
File system
Sockets
Keep just for your module
https://www.geeksforgeeks.org/multiprocessing-pyth...

D
Dr. Bacon, 2019-12-16
@bacon

Well, read the doc and understand how the process and the thread differ, and find a solution in them, for example https://docs.python.org/3.8/library/multiprocessin...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question