Re: How to determine active semaphores?
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