Using multiple processors
    n00b 
    n00b at nospam.com
       
    Thu Dec 27 10:39:33 PST 2012
    
    
  
Le 24/12/2012 05:18, thedeemon a écrit :
> 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.
I tried to disable GC and reduce memory allocation. It didn't work but I 
guess allocation rate is still pretty high, I'll try to reduce it even 
more, and post more details if it still doesn't work.
Thanks for your answer.
    
    
More information about the Digitalmars-d-learn
mailing list