Using multiple processors
thedeemon
dlang at thedeemon.com
Mon Dec 24 02:18:48 PST 2012
On Sunday, 23 December 2012 at 08:00:56 UTC, n00b wrote:
> Hello.
> My program has a great deal of computation to do, so I thought
> I'd create several threads in order to use multiple processors.
> It worked fine with a simple "test" program, but when I try to
> do this with the real program, only 1 processor is used.
How much memory allocation is happening there? High allocation
rate and often GCs can kill parallelism since they're happening
with a lock. Anyway, too hard to tell anything certain without
knowing what your program is doing.
More information about the Digitalmars-d-learn
mailing list