[.net] Garbage Collector suspended while holding Mutex = Deadlock
Hi there, I recently came across a deadlock problem where the GC would try to delete an object, acquires a mutex related to this operation, but in the process, the GC thread would go into suspend. Now the main thread runs and tries to lock the same mutex the GC just locked, spins on this forever and the GC won't go out of suspend. Does anyone have insight into problems like this with the Garbage Collector for C#?
Sorry I don't have a solution, but would I be correct in concluding you taking a mutex in the dispose methods of some of your classes?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement