[fpc-devel] Parallel Computing

Florian Klaempfl florian at freepascal.org
Tue Dec 11 11:48:05 CET 2007


Mattias Gärtner schrieb:
> Zitat von Michael Schnell <mschnell at lumino.de>:
> 
>>> Think about the alternative: It is much harder to implement the same
>>> parallel loop with TThread. So OpenMP makes parallel loops much easier
>>> to implement. For me this is the 'Delphi' way: Makes things easy and
>>> readable.
>>>
>> Of course you are right. In the example of "parallel" loops It's _a_lot_
>> easier to to use for the programmer. "Lightweight-threaded" stuff like
>> parallel loops was not the original aim of ThreadEvents. The original
>> target was a more "standard" use of threads. But it _can_ be used for
>> parallel loops, too, and it follows the "Delphi-language-paradigms" a
>> lot tighter than using TThread.
>>
>> I don't suppose that anybody will start implementing real parallel loops
>> like suggested on the wiki page any time soon.
> 
> The examples are very artificial to demonstrate the problems.
> Some real world examples / tutorials should be added on a new page. Parallel
> algorithms are seldom taught in books/schools/university, so programmers are
> not used to them. This is slowly improving.

For me the whole OpenMP approach is really artifical, I don't see a real
use in real world code for it honestly.



More information about the fpc-devel mailing list