Skip to main content

All Questions

0 votes
2 answers
6k views

Client server program with shared memory and semaphores in C

I don't really understand how shared memory works and I am trying to write a server-client program in which the server and client talk to each other using shared memory and semaphores. Shared memory ...
Syn's user avatar
  • 776
1 vote
1 answer
2k views

Using shared memory and semaphores with multiple clients

I'm working with C on Linux. I need to build two programs that communicate using shared memory and semaphores. One of the programs must serve as a server (only one at a time) and the other as a ...
alexander's user avatar
  • 559
2 votes
2 answers
3k views

why are some posix shared memory segments and posix semaphores not visible to ipcs

I built a client server application using posix shared memory and posix unnamed semaphores with pshared=1. The semaphores are placed inside the shared memory. The program runs fine, but when I type ...
Anonymous's user avatar
  • 4,183