This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Description
In this code, although ideally all threads must acquire the lock but this also adds a synchronization point in ES which can be costly if attach is taking longer than usual. Therefore, if a thread running ES operation cannot get the ThreadState
, it should try to acquire the lock, failing which, it should move on instead of blocking.