I know there is a 4gb limit for each process when running in 32 bits .... but if a process has multiple threads... does all the memory usage of each thread add up to the total of 4gb? Or does each thread get 4gb of individual memory space to use?
Asked
Active
Viewed 879 times
1
-
1That's sort of the point of threads: All threads share the same address space within a process. If you wanted separate address spaces for each thread, then put each thread in its own process. The process is the thing that has an address space. – Raymond Chen Feb 03 '15 at 06:57
1 Answers
2
They all live in the same address space. So - yes, this is a limit for all threads inside a process.

Eugene
- 3,335
- 3
- 36
- 44