4 messages in org.opensolaris.mdb-discuss[mdb-discuss] How to get a mutex info...
FromSent OnAttachments
liujunAug 25, 2007 1:43 am 
Oliver YangAug 25, 2007 2:31 am 
Brian Xu - Sun Microsystems - Beijing ChinaAug 26, 2007 7:08 pm 
Jonathan AdamsAug 26, 2007 10:42 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[mdb-discuss] How to get a mutex info along with a thread infoActions...
From:Oliver Yang (Oliv@Sun.COM)
Date:Aug 25, 2007 2:31:11 am
List:org.opensolaris.mdb-discuss

liujun wrote:

addr::mutex only give the mutex's info :

30001054000::mutex

ADDR TYPE HELD MINSPL OLDSPL WAITERS 0000030001054000 adapt 200000000 - - yes

is there some other cmds to get the thread which own it or which wait it?

Yes, you could found the mutex onwer from ::mutex output.

And you also can get all of threads related to one lock address by using:

<lock addr>::whatthread or <lock addr>::kgrep |::whatis -a

Then, try to use ::findstack to wok with a thread address...

Since you are from China, one of my Chinese blogs could give you an example about ::rwlock, but it's quite similar with ::mutex

http://blog.csdn.net/yayong/archive/2007/03/04/1520604.aspx