I have 2 processes that i'd like to synchronize:
The first process (client) launches another process (a server app that starts some WCF services), and waits for it to reach a certain state.
I'd like the client process to start the server, and block until all services were launched.
To do this, the server initializes a Mutex object and uses it for signalling the client that it's done.
The problem with this approach is that the client doesn't know when the mutex has actually finished setting up the mutex and when to starting waiting on it.
Is there any formal algorithm/protocol (leave programming languages aside at the moment) for coordinating this kind of task?