Questions tagged [interprocess]

A capability supported by some operating systems that allows one process to communicate with another process. The processes can be running on the same computer or on different computers connected through a network. It enables one application to control another application, and for several applications to share the same data without interfering with one another.

412 questions
0
votes
0 answers

Linux - How to pass interprocess messages while preserving datatype

I'm working on inherited codebase that uses POSIX Message Queues to pass data between processes. Because of the nature of mq, the messages have to be passed in form of bytes and the numbytes passed along so when the messages are reconstructed,…
Bob
  • 4,576
  • 7
  • 39
  • 107
0
votes
0 answers

Same program, same parameters, different locations and different exit codes

I've encountered an unexpected problem with an .exe I use for my inter-process communication. It seems to work in desktop directory but it fails and gives a weird unset in its code exitcode in my project directory. I can't find the source of the…
SebOlens
  • 519
  • 3
  • 15
0
votes
0 answers

communicate a .exe with a service c#

I have a windows service that uses a FileSystemWatcher to see if there are pdf files moved to a folder, and then, when a user moves a pdf file into that folder, the service executes MyProcess. The pdf filename is like this: …
Ebaneo Vk
  • 43
  • 6
0
votes
0 answers

C++ Using files / semaphors to lock step processes / overhead-should I do this at all

I have a process A. It has various scripts S1, S2, S3, S4, S5. Previously process A merely calls script functions. S1->tick(currentTime). However, I would like to standardize the sandboxing of these scripts and move them all to external…
iamacomputer
  • 518
  • 3
  • 14
0
votes
3 answers

boost::interprocess_exception - library_error exception when creating shared_memory_object

In some rare cases (in fact on a single client's computer) code below throws an exception "library_error": namespace ipc = boost::interprocess; ipc::shared_memory_object m_shm; ... bool initAsServer(size_t sharedMemSize) { ipc::permissions…
Oleg
  • 51
  • 1
  • 1
  • 5
0
votes
3 answers

wait until the previous instance of process finish

I am new to the world of Linux C Programming so request your patience. Found several threads about inter-process synchronization (same process but different instance) using mutex and semaphores but not exactly matching my case. I tried to follow…
user2669989
  • 308
  • 1
  • 2
  • 15
0
votes
1 answer

problems with boost:interprocess shared memory

I'm having some trouble implementing boost/interprocess library for shared memory operations between two programs. This is the first I've used any shared memory operations, and I have first modified some of the sample code in the boost documentation…
brneuro
  • 326
  • 1
  • 5
  • 15
0
votes
2 answers

pipe input to and read output from another executable

I want to write a script that would work a bit like hadoop streaming: I provide a random "client" program's path, and from my host python script I "pipe" strings to the client, and I want to receive the client's stdout in my python program. So for…
lezebulon
  • 7,607
  • 11
  • 42
  • 73
0
votes
2 answers

Upgradable mutex lies at shared memory on both Windows and Linux

I have 2 processes called Writer and Reader running on the same machine. Writer is a singular thread and writes data to a shared memory. Reader has 8 threads that intend to read data from the shared memory concurrently. I need a locking mechanism…
duong_dajgja
  • 4,196
  • 1
  • 38
  • 65
0
votes
0 answers

Use boost::interprocess::mutex to synchronize shared memory access

I am having two different applications developed in C++. These applications communicate each other via boost::interprocess::shared_memory_object. Now I require a mutex variable to sync the operations between the two.. Can somebody provide a minimal…
Jackzz
  • 1,417
  • 4
  • 24
  • 53
0
votes
1 answer

Sendind pointers to different process and using them?

Is it possible to send a pointer to an object via Mach IPC by casting it into an int and then casting it back into the object. Would that work and how can that be done? I want to send a CALayer object over to a different process. I don't think I can…
Kristina
  • 15,859
  • 29
  • 111
  • 181
0
votes
3 answers

How to make two Python programs communicate?

I have two Python programs, one is a IRC bot, using sockets to connect to an IRC server. This program has a loop that reads every PRIVMSG from an specific channel. The second program should get whatever the first program outputs (the PRIVMSG in this…
Gabriel Huwe
  • 69
  • 1
  • 5
0
votes
2 answers

Linux multi process communication multiple producers one consumer

I need to build something like client-server app on C++. The goal is to trace multiple process with multiple threads (track function execution) and to gather this data into files divided by thread id. Right now I've implemented this on POSIX…
zobber
  • 103
  • 8
0
votes
2 answers

Crash if boost managed_shared_memory is used on Windows

I am new to boost. I am using “boost managed shared memory” in the following sample but one instance gets crashed while allocating memory in the shared segment on the following line : char_string key_object(keyHashStr.c_str(), alloc_inst3); The…
rban
  • 3
  • 2
0
votes
2 answers

Basics difference between distributed computing and interprocess communication?

I know the theritical definition for distributed computing and interproces communication. But in real time I was not able to come to conclusion that when we go for distributed or interprocess. Tell me some scenario where we can go for distributed…
Ramesh
  • 1,692
  • 2
  • 18
  • 37