Can I create a thread for a child process in the application?

Can I create a thread for a child process in the application?

My desktop application will create a child processduring execution. The child process mayexecute for a long time and occupy a lot of system resource.

The problem is if there's some one kill the parent processby windows task manager, the child process will become orphan and go on to execute, which is not expected.

I wanna find a way to monitor parent process.
So can I create a thread in the child process, whose job is to terminate child process whenever the parent process died?

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.