Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the preferred way of passing data between two applications on the same system?

Tags:

People also ask

How do you pass data between two processes?

One common way is to use files to communicate between the processed. Each can write to a specific file that the other reads from. You can use WCF, the registry, network interface, message queues or any other mechanism that lives outside the process. The registry as an IPC mechanism.

Which component is used to share data between two applications?

ContentProviders are a good approach to share data between applications.


I have an application (A) that needs to launch another application (B). I need to pass data between the applications. I can think of two approaches. The first is to open a socket. The second is to share data via a dll.

The opening socket approach is straight forward.

The dll approach I have some questions? I can load plug-in dlls into B. I want to create a dll that A can use to pass data to B. When loading dlls, is only one instance of the dll loaded? If so, does this mean that data can be shared between applications that load the dll?

What is the better choice?

Are there other ways of doing this?