Questions tagged [ipc]

IPC stands for Inter-process Communication and represents a set of methods for exchanging data and messages between threads and processes.

Filter by
Sorted by
Tagged with
3
votes
2answers
69 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
1answer
42 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 ...
1
vote
0answers
25 views

IPC with over 100 different methods - viable way to maintain readability

I have a system with 2 different processes. Process 1 starts process 2 and sets up an AnonymousPipe between the 2. Process 1 needs to run some code and needs to ...
3
votes
0answers
39 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
1answer
907 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
0answers
51 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
0answers
429 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 ...
5
votes
0answers
131 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
1answer
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 ...