3 ms·
>The solution to this is just throw so much CPU at the problem that everything gets done in a reasonable amount of time. Erlang exploits this fact. It is not p
by imtringued 8y ago
>The solution to this is just throw so much CPU at the problem that everything gets done in a reasonable amount of time.
Erlang exploits this fact. It is not possible to use iteration, only recursion. This means it is not possible to block the cooperative scheduler unless you have a single incredibly long function that spans several thousands of lines of code. On the other hand calling into C code directly can still bring the cooperative scheduler down which is why Erlang code generally uses a separate process to run C code.