I am working on a NetBSD system.
As I recollect from my memory from a book on UNIX programming by Richard Stevens, I lerant that semget() call returns different values for different invocations, even for the same thread.
I recently happen to see a group of processes where different invocations of this semget() to be returning same set of values for respective IPC keys. I see that same process image in different boxes also yield same value for semid.
So, my question is - Is there anyway we can force semget() to exhibit this behaviour?