Get the number of cores in Erlang with Linux
erlang
Solution
You can use
erlang:system_info(logical_processors_available)
to get the number of cores that can be used by the erlang runtime system.
Problem
i am writing a concurrent program and i need to know the number of cores of the system so then the program will know how many processes to open. Is there command to get this inside Erlang code? Thnx.