I have a class which logs to a file .this class is used by multiple threads. I have use a mutex inside the write function and it works fine with one instance of my application . but if I start multiple instance of the application the it crashs.
what is the correct implementation of named mutex at class level that can work across process .