I have a named mutex in my application.
private Mutex TaskExitStatus = new Mutex(false, "TaskExit")
I acquire the mutex in a method using TaskExitStatus.WaitOne()
What will happen if I am not releasing the mutex while exiting the application? Will the mutex be disposed safely?
Update 1:
Will both named and unnamed mutex behave the same when not released on application exit?
Update 2
This is what i read from MSDN link
Use the CloseHandle function to close the handle. The system closes
the handle automatically when the process terminates. The mutex object
is destroyed when its last handle has been closed.
According to the documentation, it is abandoned (not necessarily disposed)
Also, heed the warning about abandoned Mutexes: