Am 22.09.2014 10:38 schrieb "Michael Schnell" <mschn...@lumino.de>: > > On 09/20/2014 08:33 PM, Giuliano Colla wrote: >> >> Can you explain how reference counting can be safely implemented in a parallel multithreaded environment, without heavily affecting performance? > > *Very* good point ! > > IMHO a by far more advantageous feature to be added than ref-counted objects would be RTL support and Syntax candy for "parallel Loops", and the necessary support stuff like "Future variables" (or similar thingies). > > All new mid-level hardware now has art least four cores and hence performance would benefit from such features in may projects. > > So maybe "ARC" and "parallel" paradigms should be discussed together so that no mutual problems are introduced.
Interfaces, strings and arrays already work well in multi threaded contexts and ARC will use the same mechanisms here, so there is no need to discuss "parallel" and ARC together. Note: ARC doesn't change that the developer him-/herself needs to make his/her classes threadsafe. ARC only "protects" the references. Regards, Sven
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel