[erlang-questions] Multiple core processors

Taavi Talvik <>
Mon Oct 2 23:35:14 CEST 2006


On Oct 2, 2006, at 11:43 PM, Gerd Flaig wrote:

> Damir Horvat <> writes:
>
>> How does Erlang take advantage of multiple core processors? erl binary
>> does not link to any of system threading libs. How can then use more
>> than one core?
>
> it does on my system:
>
> % ldd /usr/lib/erlang/erts-5.5.1/bin/beam
>         libdl.so.2 => /lib/libdl.so.2 (0x00002aaaaabc2000)
>         libm.so.6 => /lib/libm.so.6 (0x00002aaaaacc4000)
>         libncurses.so.5 => /lib/libncurses.so.5 (0x00002aaaaae49000)
>         libpthread.so.0 => /lib/libpthread.so.0 (0x00002aaaaafa5000)
>         librt.so.1 => /lib/librt.so.1 (0x00002aaaab0bb000)
>         libc.so.6 => /lib/libc.so.6 (0x00002aaaab1c3000)
>         /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)
>
> I just checked, even versions below R11 use libpthread, even though
> the virtual machine only uses one thread in those. To make use of more
> than one processor for Erlang code, you either have to run multiple
> nodes on one host or use at least R11.

I can be mistaken, but even earlier Erlang VM-s used separate OS thread 
for
io (ports).

best regards,
taavi




More information about the erlang-questions mailing list