J
J
Jebati2021-11-15 21:55:52
C++ / C#
Jebati, 2021-11-15 21:55:52

How to transfer a large array of data between processes?

Prompt a library/method with which it is possible to exchange data between processes (under different users) for Linux.
The program will execute functionality: run a child process under another user, and transfer files there. In this case, the child process may have an error, which the process will report to the parent. More than one transfer can occur in parallel.
I have a file stream, if it were to be passed directly to the child process, so that it would not eat a lot of resources and be pretty fast.
What tell me?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2021-11-15
@vabka

You can use NamedPipeClientStream and NamedPipeServerStream - this is probably the fastest/lightweight way.

H
HemulGM, 2021-11-16
@HemulGM

Use sockets. Universal way for all OS.
And in addition, Linux has an IPC socket
https://ru.wikipedia.org/wiki/Unix_domain_socket

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question