How to wait for a process to finish in Windows?
I have to process running in windows. The second one should wait until th开发者_JAVA技巧e first process exits in order to start processing. I want something like the pthread_cond_wait so that my second process is inactive until it receives a signal saying that the first process is gone.
I remember once I found the answer, a quite simple windows API call, but I cannot remember it.
Try WaitForSingleObject()
.
精彩评论