开发者

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().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜