OS: HPUX11
I am thinking of using fork in my program
Steps
1. Initialize variables - pointers etc
Allocate memory
2. fork
3. do processing
4. free the memory alloted
My question is whether fork will create a seperate set of memory locations for all the pointers variables etc... in each process? Because I allocate the memory only once in the parent process but I free the memory in all the parent and child processes.
Thank you