Re: Whu I value doesn't change ?
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Sun, 25 Nov 2007 21:39:54 -0800 (PST)
On Nov 25, 7:58 pm, sophia.ag...@xxxxxxxxx wrote:
address of i = 0xbfe6c01c
initially i value in child = 10
after incrementation i value in child = 20
Child terminated....
address of i = 0xbfe6c01c
value of i in parent = 10
the address of i is same in both parent and child process but
the change made in child process is not reflected in the
parent process why ?
Why should it be? They're two separate processes.
Note that the addresses you are printing out are process virtual
addresses. Each process has its own memory map and address space. This
is why system virtual memory is not normally considered a scarce
resource.
DS
.
- References:
- Whu I value doesn't change ?
- From: sophia . agnes
- Whu I value doesn't change ?
- Prev by Date: Re: Whu I value doesn't change ?
- Next by Date: Re: www.freebsd.org times out
- Previous by thread: Re: Whu I value doesn't change ?
- Index(es):
Relevant Pages
|
|