文件名称:test5
介绍说明--下载内容均来自于网络,请自行研究使用
我们在开发是经常需要在启动一个进程之后等待其结束后再继续运行。
在这里提供了一个名为Wait的函数,它会为你完成上面的功能。实现的思想是在启动进程后等待其结束,由于进程是一种资源,而资源的句柄在WIN32中可以作为核心量使用。你可以使用WaitForSingleObject等待核心量状态改变为有信号状态。对进程来讲当进程结束时其状态转变为有信号。
在本例中使用了一个单独的线程来启动进程并等待结束。
-We often need to develop a process to wait after starting their end before continuing to run.
Here provides a function called Wait, and it will be for you to complete the above functions. Thought to achieve is in the process of waiting for it to end after the start, because the process is a resource, and handle resources can be used as the core in an amount in WIN32. You can use the WaitForSingleObject wait core volume status change signaled state. At the end of the process in terms of its state to process the signal.
To start the process uses a separate thread in this case and wait for the end.
在这里提供了一个名为Wait的函数,它会为你完成上面的功能。实现的思想是在启动进程后等待其结束,由于进程是一种资源,而资源的句柄在WIN32中可以作为核心量使用。你可以使用WaitForSingleObject等待核心量状态改变为有信号状态。对进程来讲当进程结束时其状态转变为有信号。
在本例中使用了一个单独的线程来启动进程并等待结束。
-We often need to develop a process to wait after starting their end before continuing to run.
Here provides a function called Wait, and it will be for you to complete the above functions. Thought to achieve is in the process of waiting for it to end after the start, because the process is a resource, and handle resources can be used as the core in an amount in WIN32. You can use the WaitForSingleObject wait core volume status change signaled state. At the end of the process in terms of its state to process the signal.
To start the process uses a separate thread in this case and wait for the end.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test5.txt