Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a tool to monitor synchronisation objects (mutex, events, semaphores) in Windows?

In Windows, is there a tool to monitor the status of process synchronisation objects? ie.

  • event/mutex : signaled or not signaled
  • semaphore : count

Better yet, to log which thread did what, eg. "thread #5421 Signal Event - testevt"

like image 950
sep Avatar asked Apr 29 '09 07:04

sep


1 Answers

Memory Validator

Process Explorer

Handle usage: handle -s ==> Print count of each type of handle open.

[EDIT]:

How to monitor the status of process synchronization objects using Process Explorer.

Open Process Explorer

  • Click on your exe in the process section (for ex: MyApp.exe)
  • Click Show Lower Pane (or press Ctrl+L). This will show all synchronization objects. (for ex: myEvent)
  • Right click on synchronization object (for ex: myEvent) and click Properties... in context menu.
  • This brings the details of the synchronization object. In the Details tab, you can see

    Event Info (if synch object is event): Gives information about the state (whether the synchronization object is signaled)

    Semaphore info (if synch object is semaphore): Provides the count of the semaphore.

like image 103
aJ. Avatar answered Sep 20 '22 17:09

aJ.