Question

When a process creates a new process using the fork() operation, which of the following resources is available for read/...

When a process creates a new process using the fork() operation, which of the following resources is available for read/write between the parent process and the child process?

a) stack

b) heap

c) shared memory segments.

Please explain the answer fully and also explain why the other 2 options are incorrect.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Child and parent run concurrently, parent may create another process and child may also create another porcess. To maintain child process separate stack is maintained by parent and child.

When child process is created, the copy of heap is shared. When a child process performs write on heap, the copy is private to child process. That is not visible to parent process.

When parent process makes some changes , private copy is maintained by parent process and not visible to child process.

Answer is option c

Add a comment
Know the answer?
Add Answer to:
When a process creates a new process using the fork() operation, which of the following resources is available for read/...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT