I have some resource that is shared between various .net application.
If one app is using that resource then other apps should wait untill first app release that. Other apps will get chance to occupy that resource randomly based upon cpu scheduling.
I was trying to use mutex for this but if an application has occupied the mutex and terminates abnormally then other apps get error.
Please suggest a design to resolve this scenario.