Thursday, 4 December 2014

When a process creates a new process using the fork() operation, which of the following state is shared between the parent process and the child process?

a. Stack
b. Heap
c. Shared memory segments

Only the shared memory segments are shared between the parent process and the newly forked child process. Copies of the stack and the heap are made for the newly created process.

No comments:

Post a Comment