I realize that there is a mutual exclusion issue. Looking at the original post, he asked how to tell if the other process was running. Perhaps a better question would have been, how can I check if another process is in a critical section of the code. Normally with threads, you can use a semaphore. I guess I didn't look enough into the question, I just answered the one that was posed.