[fpc-devel] Suggestion: reference counted objects
Mark Morgan Lloyd
markMLl.fpc-devel at telemetry.co.uk
Mon Sep 29 10:55:41 CEST 2014
Michael Schnell wrote:
> Something like this to do a matrix multiplication
At the moment the only point I am making is this. Assuming a thread pool
which can be applied to a parallel activity, it might be desirable to
only use that from a single app-level thread. Hence (using your syntax
only for consistency):
serial for i := 0 to m-1 do begin
> parallel for j = 0 to n-1 do begin
..
> end;
> end;
to ensure that the inner loop is parallelised to the greatest possible
extent, but that the outer loop is protected from reentry.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-devel
mailing list