I have two C++ processes (A and B), executing under Windows, where one launches the other. I would like to effectively single-thread their execution. For example:
- Start process A
- A creates B
- A suspends
- B executes some fixed set of operations
- B suspends and A is resumed
- A executes some fixed set of operations
- A suspends and B is resumed
- (Repeat 4 - 7)
Which Windows synchronization and IPC services would be best to implement this type of behavior?