1835623 Members
3191 Online
110080 Solutions
New Discussion

Mutex

 
Nicolas Dumeige
Esteemed Contributor

Mutex

Hi all,

How do you determine the resource on which a lock was set when you see a lot of mutex ?

Nicolas
All different, all Unix
4 REPLIES 4
Nicolas Dumeige
Esteemed Contributor

Re: Mutex

Gurus,

Does any one have an idea about mutex resource ?
Where could I get short but accurate presentation about mutex monitoring ?

Thanks for your time

Nicolas
All different, all Unix
Robert-Jan Goossens
Honored Contributor

Re: Mutex

Hi,

search the IT resource center forum for "mutex" there are lots of hits.

Regards,
Robert-Jan
Nicolas Dumeige
Esteemed Contributor

Re: Mutex

When tracing a process, I see mutex syscall among other coordination means (see trace below).
How to determine the resource shared by threads ?

/8: lwp_mutex_lock(0xF83ECD10) = 0
/7: lwp_cond_wait(0xF83ECD28, 0xF83ECD10, 0xF6F05D30) Err#62 ETIME
/5: lwp_sema_wait(0xF680FE60) = 0
/7: lwp_sema_post(0xF680FE60) = 0
/7: lwp_cond_signal(0xF680FF18) = 0
/5: lwp_mutex_lock(0xF83ECD10) = 0
/4: poll(0xF720AB20, 1, 10000) = 0
/4: getpid() = 19034 [15348]
/4: getpid() = 19034 [15348]
/4: getpid() = 19034 [15348]
/4: getpid() = 19034 [15348]
/4: getpid() = 19034 [15348]
/7: lwp_cond_wait(0xF83ECD28, 0xF83ECD10, 0xF6F05D30) Err#62 ETIME
/7: lwp_sema_post(0xF7007E60) = 0
/7: lwp_cond_signal(0xF7007F18) = 0
/8: lwp_sema_wait(0xF7007E60) = 0
/1: poll(0xFFBEE220, 1, 4000) = 0
/1: lseek(64, 16176, SEEK_SET) = 16176
/1: read(64, " I\0 W\0 R\0 N\0 E\0 T\0".., 8192) = 3434
/1: lseek(64, 2046, SEEK_SET) = 2046
/1: read(64, " I\0 W\0 R\0 N\0 E\0 T\0".., 8192) = 8192
/1: uname(0xFFBEDDE8) = 1
/1: getpid() = 19034 [15348]
All different, all Unix