> What I imagine as solution (I know it won't work this way, but > to give you a better idea): > > for(int i = 0; i < #threads; i++){ > runInThread(generateTerrain(...)); > } Are you looking for parallel? http://dlang.org/library/std/parallelism/parallel.html