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.