Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ipc]

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

3
votes
0answers
47 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
289 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
113 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
866 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 ...