Maintain variable between multiple process

Hi,
In the existing code,fork has call parallel to create process.my job is to store all the process id into vector so that we can verify the status of the jobs. I was able to save all the jobs but as the callback happen so I have lost my all value which was store into vector.

I could not figure out what is happening surprisingly.somebody has encounter this kind of scenario. or how can i maintain variable between multiple process
Your scenario is difficult to understand without some more details. F.e. what "callback" is happening? How do you manage your "vector".
Topic archived. No new replies allowed.