Questions tagged [ipc]
IPC stands for Inter-process Communication and represents a set of methods for exchanging data and messages between threads and processes.
12 questions
3
votes
1
answer
715
views
Client disconnection and reconnection in C# NamedPipeServerStream
I have written a C# .NET code that utilizes NamedPipeServerStream to send and receive data. My goal is to ensure that when a client disconnects, the server waits ...
5
votes
3
answers
569
views
C11 zero copy lock-free triple buffer
The code is for a single producer, single consumer scenario, where the consumer only cares about the latest information shared by the producer.
This is just a simple proof of concept created for linux....
2
votes
1
answer
740
views
Tool for asynchronous IPC using pipes
Description of the code:
The code provides asynchronous IPC functionality in C++ using the Boost libraries and pipes.
Each process asynchronously "listens" on the read end of the pipe and ...
2
votes
1
answer
269
views
FizzBuzz JSON via Unix socket (Go)
At heart, this program is just the basic "FizzBuzz" program. However, the program was pushed further, by making it a client-server via Unix Socket:
Server run, and listening on a socket.
...
3
votes
2
answers
705
views
CLI-Client for interacting with daemon
I have a daemon which I am able to interact with through a cli-client. The daemon will perform some tasks in future e.g. monitoring the rate at which files are added to a directory.
Right now when I ...
2
votes
1
answer
134
views
IPC The sleeping barber problem in C feedback
I would love to get some feedback on this Sleeping barber implementation in C.
the entire project can be found here: https://github.com/T0iS/sleeping-barber
...
3
votes
0
answers
49
views
Application uniqueness and unilateral IPC on Unix
This program
Detects application uniqueness, if the application is a unique/primary instance, it launches a server, otherwise a client over a Unix domain socket.
Client will send a message that will ...
6
votes
1
answer
3k
views
C++ simple inter-process notification system
I needed to synchronise several processes, so I developed this ipn::Notifier class that uses a mutex+condition variable stored in shared memory to notify all ...
3
votes
0
answers
78
views
Cache line versus struct size testing
There's a mission-critical ring buffer in production on which I'm curious to test some optimizations. Specifically, I'm wondering how much of a performance difference struct size will make on issues ...
2
votes
0
answers
513
views
IPC reader-writer without starvation
I'm trying to implement a functional version of the classic reader-writer problem in IPC which doesn't cause starvation. You can find the full article here
The code is working. What do you think, is ...
6
votes
1
answer
259
views
Semaphore implementation by file locking in a bash script
This implementation is inspired by the POSIX functions sem_wait() and sem_post(). It tries to get rid of busy loops in the code ...
1
vote
1
answer
1k
views
Enforce exclusive order of four processes using semaphores
I am on the learning curve of C and its capabilities. Below I have tried to create 4 individual programs where the execution is always in order (program 0,1,2,3).
About the program
Program #0 is ...