文件名称:test5
-
所属分类:
- 标签属性:
- 上传时间:2015-06-08
-
文件大小:780byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
我们在开发是经常需要在启动一个进程之后等待其结束后再继续运行。
在这里提供了一个名为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
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。