Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
1690 Discussions

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

vienna
Beginner
150 Views
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