I have some experience with pthreads and am looking into threads in windows. They seem quite similar for the most part I am confused about one thing though. With pthreads the heap of the parent process is shared with the threads meaning that they all have access to the same memory. This does not seem to be the case with windows, or I am miss understanding something. With windows do you have to use a shared memory object to access the variables used by all?
Asked
Active
Viewed 128 times
1
-
2No; the threads in the same process have access to the same memory space. – Andrew Barber Dec 12 '14 at 22:26
-
The only issue may be if two DLL's have different memory-manager instances. – Martin James Dec 12 '14 at 23:46