Identifying Semaphore Owners

Hi,

I have an AIX server which has a number of root owned semaphores. Is there a way of identifying which processes/threads own these processes so that they can be removed.

I there also a way to remove shared memory segments in a similar way

Thanks.
\

you can try looking at the
"ipcs -a"
command which show the semaphores, message queues and shared memory

I am not too sure but I think it has a fields with the process ID.

The ipcs command can be used to remove message queues, sharemem and semaphores as well