<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid:4C90C73F.5050409@freepascal.org" type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<tt><br>
<br>
Whats about CILK <a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/Cilk">http://en.wikipedia.org/wiki/Cilk</a><br>
<br>
<br>
</tt>
<pre><tt><code><u>function </u> fib (n: integer):integer;
var
x,y : integer;
begin
if (n < 2) then exit(n)
else begin
x := <u>spawn</u> fib (n-1);
y := fib (n-2);
<u>sync</u>;
exit(x+y);
end;
end;
</code>
</tt></pre>
<br>
<pre class="moz-signature" cols="72">
Darek
</pre>
</body>
</html>