Re: Threading with EXW
- Posted by Robert Craig <rds at ATTCANADA.NET> Oct 04, 1999
- 487 views
John Cannon writes: > Now I think the problem is more fundamental: > Exw cannot interpret several threads simultaneously. Support for multiple threads would require extensive modifications to the Euphoria interpreter. It isn't something that you can do, as a Euphoria programmer, just by calling WIN32 API routines. A WIN32 program can create multiple threads, each with its own separate call stack, but sharing the same global variables. Each thread runs "in parallel" with the other threads, and there are various mechanisms to prevent threads from interfering with each other. You may have succeeded in creating multiple threads of the interpreter itself, each one messing with global variables, without any awareness of the others. I'm not surprised it crashed. Euphoria might support multiple threads someday, but it would take a lot of recoding, to make it work. For instance there would have to be multiple Euphoria call stacks, and multiples of many other internal data structures. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com