-
I recently got a latency spikes issue in my application because the async API of a library was actually waiting on a ManualResetEventSlim.Wait that would cause thread starvation. Now I would like to collect events about any thread that starts waiting. I can collect the contention event, the task waits, but it seems like there is no events emitted in ManualResetEventSlim. Looking at the code ManualResetEventSlim uses Monitor.Wait so I've tried looking for an event there but couldn't find any. Any idea what I could do to easily detect blocked threads? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
A new event |
Beta Was this translation helpful? Give feedback.
A new event
WaitHandleWait
was added to the runtime in #94737 that is extremely useful to investigate thread starvations.