Re: Virtual Address Space
- Posted by Robert Craig <r..craig at SYMPATICO.CA> Nov 10, 2000
- 412 views
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 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