[erlang-questions] Multiple core processors
Gerd Flaig
gefla@REDACTED
Mon Oct 2 22:43:18 CEST 2006
Damir Horvat <damir@REDACTED> 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.
Goodbyte, Gerd.
--
The last thing one knows in constructing a work is what to put first.
-- Blaise Pascal
More information about the erlang-questions
mailing list