[fpc-devel] Threading support and C library under Linux/Unix

Michael Schnell mschnell at lumino.de
Thu Jun 24 10:16:34 CEST 2010


On 06/24/2010 10:10 AM, Daniƫl Mantione wrote:
>
> Yes, but in a multi-cpu system giving up the timeslice is a very bad
> idea, because the lock might be released a few clock cycles later by
> the other cpu; you would waste the rest of time slice while you could
> be crunching
Of course you are right. But this code is only used for ARM lower than
v6 (ARMV6 provides ldrx which is fine, anyway). Are there really
multi-CPU ARMv5 or even ARMv4 systems ? They would work decently with
the sleep; I don't think it's relevant to optimize the RTL code for those.

-Michael



More information about the fpc-devel mailing list