C#C
C#3y ago
etet2

❔ Profiling Multithreading

i am extensively using multi-threading and locks in my project. After a recent overhaul some cascading cycle of cause and effect caused some an issue where the code spends 70% of the time waiting for locks to free up rather than actually doing things.

How could i go about finding the exact lines where the code is waiting?
The best thing i can think of is to go around removing locks and seeing the effect on performance but that would just crash the program with various excetiptions with regards to access to collections and such
image.png
Was this page helpful?