Re: run "thread" with memory space similar a new process

2018-06-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 1 June 2018 at 19:16:46 UTC, Dr.No wrote: exactly as a new process does? Why not just create a real process?

run "thread" with memory space similar a new process

2018-06-01 Thread Dr.No via Digitalmars-d-learn
Thread is "limited" to local storage, so static variables (including the ones marked as __gshared in D) which are globals are shared between the threads. So, calling not pure functions which depend upon global variables prevent parallization for that global-dependence. (please tell me I got an