The operating system creates the new child process but does not allow the child process to begin executing its code right away. Of course, the system creates a new, empty process handle table for the child process just as it would for any new process. But because you passed TRUE to CreateProcess?s bInheritHandles parameter, the system does one more thing: it walks the parent process?s handle table, and for each entry it finds that contains a valid inheritable handle, the system copies the entry exactly into the child process?s handle table. The entry is copied to the exact same position in the child process?s handle table as in the parent?s handle table. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.