When I create a C plugin for erlang, will it take full advantage of the spawning system? Is it blocked?

For example, I have a program that eats a lot of CPU. I am creating a C plugin that can interact with erlang. I am creating 16 threads with SMP +16. Would this give me similar performance compared to something like pthreads on a multi-core computer? Threads should not bind to each other.

+3
source share
1 answer

The "C plugin" is not clearly defined in the erlang context.

Or you are writing a port that basically creates a system process.

Or you write related in a driver that works in the same context as Erlang vm.

. , ( SMP).

, , . , , , . , Erlang . Erlang vm .

- Erlang, erlang "", , "" " , script?

+3

Source: https://habr.com/ru/post/1780524/


All Articles