© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ ObservableCollection + multithreading
C#CC# / help
4y ago
Help with Multithreading
C#CC# / help
3y ago
❔ multithreading with Tasks
C#CC# / help
3y ago
❔ Help with MultiThreading
C#CC# / help
4y ago