开发者

How to wait for a process to finish in Windows?

开发者 https://www.devze.com 2023-03-15 14:39 出处:网络
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 secon

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

精彩评论

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