Re: Virtual Address Space

new topic     » goto parent     » topic index » view thread      » older message » newer message

Al Getz writes:
> system("program2.exe "&AddrString,0) --call program2.exe (below)
>
--passing AddrString

program2.exe is a separate program.
Separate programs do not share memory with each other.
Each has its own address space.
Address 1000 in program1 has nothing
to do with address 1000 in program2.
These are *virtual* addresses. The O/S and the hardware
map these to different *physical* addresses.
You can't pass data that way between programs (processes).
This is a wonderful thing smile as it prevents one program
from messing around with memory being
used by another program.

Within a *single program*, Windows allows for
something called multiple *threads*. Threads run in
parallel and each has its own call stack. The threads
of one program share the global variables and memory
of a single program. Euphoria does not support threads,
but might in the future.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu