Parallel Process

Status
Not open for further replies.
Originally posted by Pedant:
I ned to spawn a parallel process in a windows program. How do I do this quickly and easily. I am quite happy for it to access global variables
Meaning what, precisely?

You can spawn new processes with the <tt>_execXxx()</tt> family of functions, or with the <tt>_spawnXxx()</tt> family of functions. Or with <tt>CreateProcess()</tt>.

Because they're distinct processes, they don't share variables (except that DLLS can have shared portions that are shared by each process that loads the DLL). However, child processes can inherit inheritable handles from their parents; see here for more details.

Also in windows, is it possible to have two top level windows, and if so how do I implement these?
I'm not 100% sure what you mean, but I would hazard a guess at "no". Only one window can have input focus at any one instant.
 
Status
Not open for further replies.