title: Where do you place POSIX semaphores when using POSIX shared memory?
body: <p>I'm trying to build a client server application using POSIX shared memory and POSIX semaphores. Do I have to place the semaphores inside the shared memory segment or can the semaphores just be global variables? I wish to adhere to POSIX convention.</p>