M
M
mrgrigo2018-10-14 15:57:46
Python
mrgrigo, 2018-10-14 15:57:46

What literature would you recommend on interprocess communication in Python?

Hello.
Please advise examples of the implementation of interprocess communication in Python 3:
- semaphore
- shared memory
Googled on shared memory, everywhere they suggest simply passing data as parameters. And my goal is different: at the end of the process, "hang out" a flag for another process that you can kill this child process and cut off the connection.
UPD: well, and, accordingly, to work with all this business in the service process-dispatcher. Therefore, the descriptor must also fit into the shared memory.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-10-14
@mrgrigo

I will advise the " Sharing state between processes " section of the official documentation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question