[Lazarus] Threads in Lazarus code base

Dariusz Mazur darekm at emadar.com
Fri Sep 17 14:09:59 CEST 2010


> 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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20100917/fb4017c2/attachment-0004.html>


More information about the Lazarus mailing list