title: C# and C++ Synchronize between processes
body: <p>We have 2 applications. One written in C# and the other in C++. We need to maintain a counter (in memory) shared between these processes. Every time one of these applications start, it needs to check for this counter and increase it and every time the application shut-down it needs to decrease the counter. If the application has a crash or shut-down using task manager, we also need the counter to decrease.<br>
  We thought of using one of the OS synchronization objects like MUTEX.<br>
  My question: What kind of sync object is the best for cross process (when one is C# and the other C++)  </p>
  
  <p>Hope my question was clear.<br>
  Thank you very much,  </p>
  
  <p>Adi Barda </p>