Questions tagged [inter-process-communicat]

Inter-Process Communication (IPC) refers to the exchange of data among multiple threads in one or more processes, either locally or on remote computers connected in a network. The available methods of IPC vary based on the bandwidth and latency of communication between the threads, and the type of data being transmitted. IPC includes subtopics such as message passing, synchronization, shared memory, and remote procedure calls (RPC).

218 questions
34
votes
1 answer

LD_PRELOAD equivalent for Windows to preload shared libraries

I'm trying to do exactly what LD_PRELOAD does, i.e. preload a shared library or DLL files on Windows to a given program to override certain functions. Is there a LD_PRELOAD equivalent for Windows? I don't have any specific functionalities in mind. I…
dm76
  • 4,130
  • 8
  • 35
  • 46
32
votes
5 answers

Efficient Python to Python IPC

What would be an inter-process communication (IPC) framework\technique with the following requirements: Transfer native Python objects between two Python processes Efficient in time and CPU (RAM efficiency irrelevant) Cross-platform Win\Linux Nice…
Jonathan Livni
  • 101,334
  • 104
  • 266
  • 359
24
votes
3 answers

Communication between two python scripts

a methodology question: I have a "main" python script which runs on an infinite loop on my system, and I want to send information to it (a json data string for example) occasionally with some other python scripts that will be started later by myself…
Dettorer
  • 1,247
  • 1
  • 8
  • 26
20
votes
3 answers

Interprocess communication with a Daemon

I want to implement a Unix daemon (let's call it myUnixd), and want the user to be able to interact with this daemon via the command line, for example: myUnixd --help # will display help information myUnixd --show # will show some data (the's deamon…
funnyCoder
  • 787
  • 2
  • 10
  • 30
12
votes
4 answers

Insert text into the textbox of another application

How do I, using C# or C++, insert text into the textbox of another application? I did this a long time ago and seemed to remember something about using the applications HWND. But since that change for every instance of the application I feel that I…
inquam
  • 12,664
  • 15
  • 61
  • 101
11
votes
2 answers

Do we need to close the read end of a pipe explicitly whose write end has already been closed?

I have this following scenario. I create a pipe. Forked a child process. Child closes read end of the pipe explicitly and writes into the write end of the pipe and exits without closing anything ( exit should close all open file/pipe descriptors…
Pavan Manjunath
  • 27,404
  • 12
  • 99
  • 125
10
votes
1 answer

Inter-process-communication between a Java application and a local server

Firstly Cheers to all PROGRAMMERS [ Today = Programmers day :) ] Secondly, I'm working on a project where the specifications require using a server as a front end and an application in the back end. The project is an advanced smart home system. The…
CME64
  • 1,673
  • 13
  • 24
10
votes
1 answer

communication between 2 programs in python

I have 2 programs that are both in python, one is 3rd Party and already been made. I want to run one in the foreground and one in the background. I want to set up a communication between the 2 programs, so I can tell the one in the foreground to do…
John Smith
  • 1,089
  • 3
  • 18
  • 37
8
votes
2 answers

How can I invoke a method within another process instance of my WinForms app?

I am working on an application that uses a Mutex to ensure that it is the only instance of the application running on the system. When another instance of the application attempts to start, I want a method to run in the original instance. Can I…
Daniel Schaffer
  • 56,753
  • 31
  • 116
  • 165
8
votes
2 answers

How to persistently save PendingIntent provided by another application

let's say I want to implement an app which exposes services to other apps (like Google Play Services..). potential apps would register to my special events associated with my services, and would be notified at the right time. I was thinking to…
Tal Kanel
  • 10,475
  • 10
  • 60
  • 98
8
votes
3 answers

"Multi-process" vs. "single-process multi-threading" for software modules communicating via messaging

We need to build a software framework (or middleware) that will enable messaging between different software components (or modules) running on a single machine. This framework will provide such features: Communication between modules are through…
8
votes
4 answers

Is there a way in PHP to use persistent data as in Java EE? (sharing objects between PHP threads) without session nor cache/DB

Is there a way in PHP to use "out of session" variables, which would not be loaded/unloaded at every connexion, like in a Java server ? Please excuse me for the lack of accuracy, I don't figure out how to write it in a proper way. The main idea…
Benj
  • 1,184
  • 7
  • 26
  • 57
8
votes
1 answer

how do programs communicate - micro kernel monolithic kernel exo kernel

how do programs communicate with the micro kernel/monolithic kernel/exo kernel? I have read many books that show as in the picture, that monolithic kernels communicates with the program through the system call table/filesystem layer. But how do…
zeitue
  • 1,674
  • 2
  • 20
  • 45
7
votes
1 answer

Create MPI processes on the fly with fork?

If I use MPI, I have a number of processes specified when I run the main program. However I would like to start with one process and dynamically decide at runtime if and when I need more, to fork more processes off. Is that or something similar…
bitmask
  • 32,434
  • 14
  • 99
  • 159
7
votes
2 answers

32bit - 64bit interprocess communication

I am tasked with implementing an xml editor based on Win32 as a frontend process, while the business logic will be handled via a 64bit process. In addition the communication between the two processes will be done via a message bus which can only…
FailedDev
  • 26,680
  • 9
  • 53
  • 73
1
2 3
14 15