• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to determine active semaphores?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to determine active semaphores?


  • Subject: Re: How to determine active semaphores?
  • From: Paul Ripke <email@hidden>
  • Date: Wed, 29 Jun 2005 22:52:06 +1000


On Monday, Jun 27, 2005, at 11:10 Australia/Sydney, Tron Thomas wrote:

I want to determine how many active semaphores are on my system, and I'm not sure how this can be done. It seems I can know how many semaphores are allowed by using the sysctl command. Someone had suggested that the ipcs command would be helpful. When I use it like this:
ipcs -as


This is the output I get, which I don't find to be helpful:
Semaphores:
T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS OTIME CTIME


What command can give me the information I am seeking?

The sem_open, sem_close, sem_unlink family of routines implement POSIX semaphores.

The semop, semget, semctl family implement System V semaphores.

ipcs and ipcrm only view and delete System V objects. I don't know
of any way to view what POSIX semaphores are in existence. And
from memory, you're using the POSIX routines, hence nothing from
ipcs.

I think I led you down the wrong path with ipcs!

Cheers,
--
stix

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to determine active semaphores?
      • From: Tron Thomas <email@hidden>
References: 
 >How to determine active semaphores? (From: Tron Thomas <email@hidden>)

  • Prev by Date: Re: ICMP Router Discovery
  • Next by Date: Re: ICMP Router Discovery
  • Previous by thread: How to determine active semaphores?
  • Next by thread: Re: How to determine active semaphores?
  • Index(es):
    • Date
    • Thread