Hi all,

Is it possible to use the "future" in Alice ML to speed up computation on 
an SMP or multicore machine? So far my little experiment below does not 
seem to use the CPU above 100% (as indicated in "top").

- fun fib n =
    if n <= 1 then n else
    let val x = spawn fib (n - 1) and y = spawn fib (n - 2) in
      x + y
    end;
val fib : int -> int = _fn
- fib 10000;

Maybe there is a parameter in Alice ML that I can tweak to use all 8 CPUs 
on this machine?

liulk

_______________________________________________
alice-users mailing list
[email protected]
http://www.ps.uni-sb.de/mailman/listinfo/alice-users

Reply via email to