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
1 answer

Interprocess communication with SPSC queue in python

I have multiple write-heavy Python applications (producer1.py, producer2.py, ...) and I'd like to implement an asynchronous, non-blocking writer (consumer.py) as a separate process, so that the producers are not blocked by disk access or…
Katie
  • 918
  • 1
  • 5
  • 18
0
votes
0 answers

I can't open an existing semaphore

I have defined as #define SNAME "/mysem" on my two programs. On the first I am creating the semaphore as sem_t *sem = sem_open(SNAME, O_CREAT, 0644, 1); The second process is creating by the first and I am trying to open the existing semaphore…
0
votes
2 answers

Cross-Process Mutex Read/Write Locking

I'm trying to make inter-process communication in C/C++ on Windows environment. I am creating a shared memory page file and two processes get the handle to that file. It's like this: Process1: Initialize shared memory area. Wait for Process2 to fill…
Everyone
  • 1,751
  • 13
  • 36
0
votes
0 answers

Boost interprocess process crash when Memory allocation will lead to dead lock

Code at http://www.boost.org/doc/libs/1_65_1/boost/interprocess/mem_algo/rbtree_best_fit.hpp (github: #L664): if process crash between lock and allocate, the mutex did not release next time allocate will be stuck. How can I deal with it?? use…
Eric Xu
  • 69
  • 4
0
votes
0 answers

Calling Win32 Interprocess Semaphore or Event rapidly

Assume that two spawned processes signaling using Win32 Events or semaphore,but When an event has be signal and reset within between 1 to 10 millisecond time interval.Sometimes Event set function - SetEvent failed to signal. If every , SETEvent ->…
user6952310
0
votes
1 answer

What is the difference between an activity start in new process and the orignal one

Today, I encounter an werid problem about shared data inter-processes. I declare the MainActivity to run in another process, and write the shared data in TestApplication to be 1, and then start the SubActivity to show the shared data. Unfortunately…
0
votes
0 answers

C - how select() understand a connection from same client

i have this question, that i think is more theoretical than pratical. I have a server, that receives connections from clients, with select() function. Server has a pattern master-slave where slave are threads that take file descriptor from master…
soissy
  • 86
  • 1
  • 10
0
votes
2 answers

Is this implementation of inter-process Producer Consumer correct and safe against process crash?

I am developing a message queue between two processes on Windows. I would like to support multiple producers and one consumer. The queue must not be corrupted by the crash of one of the processes, that is, the other processes are not effected by the…
David Sackstein
  • 500
  • 1
  • 5
  • 19
0
votes
1 answer

How can an interprocess producer consumer message passing mechanism be protected against corruption due to one side crashing?

I have implemented an interprocess message queue in shared memory for one producer and one consumer on Windows. I am using one named semaphore to count empty slots, one named semaphore to count full slots and one named mutex to protect the data…
0
votes
2 answers

Can boost's interprocess segment manager allocators be themselves shared with other processes?

I am creating a shared interprocess map using boost::interprocess. For this I create an allocator from the segment_manager of the shared memory segment where the map is located. The element value type of the map is a basic_string which is itself…
David Sackstein
  • 500
  • 1
  • 5
  • 19
0
votes
0 answers

Permanently save Netlink Sockets changes

In order to set Network Interfaces on Ubuntu 16.04 LTS I've recently developed a C program which takes advantage of Netlink Sockets for interprocess communication between User-Space and Kernel-Space. After having successfully changed the…
SimoBrazz
  • 81
  • 7
0
votes
1 answer

boost::interprocess : Creating and inserting elements to a vector of structs (C++03)

I have problem with creating vector of complex structures within boost::interprocess using msvc2008. Answers of questions asked before (links below) provides some solutions, but none of them works with msvc2008. Error type is always the same: error:…
gidorah
  • 57
  • 7
0
votes
1 answer

Are there any loss in this alternative way of using c# Mutex class?

I have an application (I didn't write this) that is using Mutex like this: static void Main(string[] args) { Mutex mutex = null; try { mutex = Mutex.OpenExisting("SINGLEINSTANCE"); if (mutex != null) { …
lmcarreiro
  • 5,312
  • 7
  • 36
  • 63
0
votes
0 answers

Is it possible to use C0N file for inter-processes communication?

In order to solve this problem I have been trying to come up with different approaches. I thought of using CON file for inter-process communication as follows: REM The findstr is pretty much useless in this example! set /P _MyVar=
utxeee
  • 953
  • 1
  • 12
  • 24
0
votes
4 answers

How to send float numbers from a C# application to a C++ application?

I have two applications: 1.: C# GUI application written in VisualStudio 2013. 2.: C++ GUI application written in VisualStudio 2013. I would like to send float numbers from application #1 to application #2. (In other words: If the C# app.…
Fract
  • 323
  • 1
  • 6
  • 22