L*1 发帖数: 11537 | 1 Need to execute some script in the main thread, wait for it to finish, and
use the script output (saved in a file) in the main thread.
In Unix, we use fork(). Windows does not have fork. Does it have something
similar, or what's the windows way of accomplishing this task?
Thanks. | D*******a 发帖数: 3688 | 2 cygwin has fork(), but slow.
【在 L*1 的大作中提到】 : Need to execute some script in the main thread, wait for it to finish, and : use the script output (saved in a file) in the main thread. : In Unix, we use fork(). Windows does not have fork. Does it have something : similar, or what's the windows way of accomplishing this task? : Thanks.
| L*1 发帖数: 11537 | 3 Thanks. As I am searching I found out that CreateProcess() and
WaitForSingleObject() pair seems to be able to do the job. | s*****k 发帖数: 604 | |
|