[erlang-questions] Tilera 64-core chip - let's help them help us!
Tue Sep 11 09:57:14 CEST 2007
On 11 Sep 2007, at 06:47, Hugh Perkins wrote:
> On 9/8/07, David King <dking@REDACTED> wrote:
>> If you have that many lists, chunk it up into the number of cores
>> available, and run that many processes.
> Yes, exactly: you need to calculate the number of available cores for
> the algorithm to be efficient, so the program is not independent of
> the number of cores.
No. All David is saying is that processing lists of 10M entries is a
special case that can benefit from some specialised algorithm (memory
limitations etc will dominate).
For "normal" erlang programs you do NOT need to care about how many
CPU cores - just spawn one process per parallel activity and let the
scheduler use as many cores as it can.
More information about the erlang-questions