The parallel loop solves nothing which makes threading hard and is only a cheap excuse. The real problems of threading are synchronization and especially abording threads e.g. triggered by the main thread.
Whats about CILK http://en.wikipedia.org/wiki/Cilk |_function_ fib (n: integer):integer; var x,y : integer; begin if (n< 2) then exit(n) else begin x :=_spawn_ fib (n-1); y := fib (n-2); _sync_; exit(x+y); end; end; | Darek
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
