|
Helping ordinary people create extraordinary websites! |
Port Windows IPC Apps to Linux, Part 1: Processes and ThreadsBy Srinivasan S. Muthuswamy, Kavitha Varadarajan2005-06-16
Using wait functions In cases when the child process is dependent on the parent process, you can use wait functions in parent process to wait for the child process termination. In Windows, you can use the WaitForSingleObject() function call to achieve this. You can use the
You can populate the object-handle array with the number of objects to wait for. Based on the In both of these functions, if you want to wait for a finite time, you can specify the time interval in the second parameter. If you want to wait infinitely, use You can use In this code: Tutorial Pages: » A mapping guide for complex, multithreaded, multiprocess applications » Processes » Creating a process » Terminating a process » Using wait functions » Exiting a process » Environment variables » Examples » Threads » Examples of processes and threads » Next in the series » Resources First published by IBM DeveloperWorks
|
|