How to develop a multi-threaded or multi process on windows?  
Author Message
saulotmalo





PostPosted: Visual C++ General, How to develop a multi-threaded or multi process on windows? Top

Hello, it is my firts posting on this forum, i need to create 2 process at the same time, one of them needs to be realtime ( because it is the render ). So i tried threads and it does not fit. But using CreateProcess runs well but i don't know how to comunicate the two processes. I've read that i can use shared memory beween 2 processes or i can use _popen insteadof the CreateProcess.

So the question is, how can i comunicate the 2 processes ( plesase note that i've always coded in linux so i'm really lost on windows coding)

thanks for the help



Visual C++15  
 
 
Simple Samples





PostPosted: Visual C++ General, How to develop a multi-threaded or multi process on windows? Top

Please see The scope of this forum; processes and threads are not supported by the C++ language and is therefore outside the scope of these forums. I will however help orient you at least.

See Processes and Threads and Interprocess Communications in the Platform SDK documentation; there is a good chance that they are useful.

One important difference between a thread and a process is that each process has it's own address space, so that communication between threads is much easier than between processes. Each Windows exe file executes in a separate address space. A separate process is advantagous for the isolation of processing that each has.