[erlang-questions] SMP support in OpenBSD

Nikolay Epifanov nik.epifanov@REDACTED
Fri Aug 7 21:39:24 CEST 2009


2009/8/7 Rapsey <rapsey@REDACTED>

> What is the test program?
>

Here it is:

--------------------------------
-module(bsd_test).
-compile(export_all).

p(X, Y) ->
    p(X, X, Y).

p(X, _, 1) ->
    X;
p(X, Z, Y) ->
    p(X * Z, Z, Y-1).

run() ->
    spawn(fun() -> p(999, 999999) end),
    run().
--------------------------------

Is it ok?


More information about the erlang-questions mailing list