I have a multi threaded C# application and it has reader writer lock,but it gives a timeout exception on some computers(not being able to acquire a lock in time) and I need to forcefully close all threads.
how do I do it without getting any extra exceptions?
I have a multi threaded C# application and it has reader writer lock,but it
Share
Environment.FailFast might be what you’re looking for, but take care about the side-effects: no finalizers, finally blocks or anything else is run. It really does terminate the process NOW.