Simple question : Is there a windows command that has the same functionality as the fork() system call in Linux ? I only know of the CreateProcess command, but I don't think it's quite the same. Anyone know how you'd emulate a fork() in windows ?
Simple question : Is there a windows command that has the same functionality as the fork() system call in Linux ? I only know of the CreateProcess command, but I don't think it's quite the same. Anyone know how you'd emulate a fork() in windows ?
Teacher: "You connect with Internet Explorer, but what is your browser? You know, Yahoo, Webcrawler...?" It's great to see the educational system moving in the right direction
What MSDN says
Supposedly it can be simulated with the native API function ZwCreateProcess, and is described in a book documenting the native API, but it's very tedious.One of the largest areas of difference is in the process model. UNIX has fork; Win32 does not. Depending on the use of fork and the code base, Win32 has two APIs that can be used: CreateProcess and CreateThread. A UNIX application that forks multiple copies of itself can be reworked in Win32 to have either multiple processes or a single process with multiple threads. If multiple processes are used, there are multiple methods of IPC that can be used to communicate between the processes (and perhaps to update the code and data of the new process to be like the parent, if the functionality that fork provides is needed). For more on IPC, see Interprocess Commuications.
Ok, thanks a lot
Teacher: "You connect with Internet Explorer, but what is your browser? You know, Yahoo, Webcrawler...?" It's great to see the educational system moving in the right direction