Consider the following program:
and its output:Quote:}
According to what I can understand, this seem normal since the memory is
duplicated when creating a new process, BUT!
I would like to be able to share the global variable Count between the
two process, so the program's output would be:
depends who takes the control first. I know that I might need some
monitoring macanism to ensure the two process don't access the Count
variable at the same time, but how can I share memory between two
Thanks for any help!
Sylvain Lemieux, ing.
PCI-Carto Inc. (The french connection)
On ne peut tomber que si l'on essaie de marcher
Every rain cloud has a silver lining