[Lazarus] thread safe

Michael Schnell mschnell at lumino.de
Tue Jun 28 11:08:28 CEST 2011


On 06/28/2011 01:41 AM, Andrew Brunner wrote:
> 2011/6/27 Malcom Haak<insanemal at gmail.com>:
>> In fact in cases
>> this this the use of CriticalSections would be sensible and
> Thread 1:
> ...
> This is relatively new theory which required low-level CPU code to
> perform such locks.  This was never needed until the introduction of
> multi-core systems.  Of which I did extensive tests on AMD via
> FPC/Lazarus.
We are discussing here if a critical would offer data integrity with 
threads or not (without additionally using low level CPU code). Your 
example does not say anything about this.

Of course we all know that in certain cases there are better performing 
option than critical sections (using low level code). But this is not to 
be discussed right now.

-Michael




More information about the Lazarus mailing list