Erm, because that's what it does. On most modern OSen (that I'm familiar with) separate processes get their own distinct address space that is distinct from all other processes executing on the same machine (unless you use some mechanism such as the aforementioned shared memory to arrange otherwise). Threads are multiple threads of execution in the same process' execution context and hence share the same address space. Perhaps you're confuzzled between processes and threads . . .
In reply to Re^3: Keeping variables throug a fork
by Fletch
in thread Keeping variables throug a fork
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |