3

I am doing assignment in which I am using POSIX named semaphore, but it is not showing me list when I enter ipcs -s command.

Please help me to get entry of named semaphore. Where will I get that?

greydet
  • 5,509
  • 3
  • 31
  • 51
Hitesh Menghani
  • 977
  • 1
  • 6
  • 14

1 Answers1

4

ipcs is for System V semaphores, you are using POSIX semaphores. For the differences, see here.

Community
  • 1
  • 1
Matthias
  • 8,018
  • 2
  • 27
  • 53
  • Thanks for your answer but I wanted to know the command to find posix semaphore in system or place where i get that. – Hitesh Menghani Feb 27 '13 at 09:10
  • 2
    AFIK, there is no standard to show posix semaphores at system level. For some systems, they are even shown by `ipcs`, for other systems you can use `ls /dev/shm` – Matthias Feb 27 '13 at 09:21