Community
cancel
Showing results for 
Search instead for 
Did you mean: 
vienna
Beginner
41 Views

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?
0 Kudos
0 Replies
Reply