The Gateway to Computer Science Excellence
0 votes
290 views
in Operating System by Active (4.1k points) | 290 views
0

address space of child and parent process is same only if copy-on-write technique is used, in which child and original process share same address space until one of them perform write operation.

0
Tell me in reference of fork concept .
0
yes, i have told with respect to fork() only,

if copy-on-write is followed then after fork() call, child and process share same address space initially, but if copy-on-write is not allowed, then after fork(), entire process is copied to different location for child process in MM, and hence they both have different address space
0
What is meant by same address space?
0
google for execlp() function, you'll know.

1 Answer

0 votes
I think

Parents process and child process have same virtual address but physical address is different

I have seen one of fork example
by Active (4.6k points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,741 questions
57,242 answers
198,010 comments
104,603 users