I am thinking of using fork in my program
1. Initialize variables - pointers etc
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.