It is so bad, since it would be done for _each and every_ access to data.
Thus basically doubling the time.
/ Per Hedbor ()
Previous text:
2004-02-03 11:12: Subject: Re: Default backend and thread backends?
On Tue, Feb 03, 2004 at 07:25:04AM +0100, Fredrik (Naranek) Hubinette (Real Build Master) @ Pike (-) developers forum wrote:
However, I'm still not entirely sure that this will be fast enough to be worth it. There will still be a lot of locking operations,
Most apps are single-threaded, so mutex ops will be no-ops effectively, but for those apps where multi-threading is important, the gain could overweight the loss, I guess.
Really, mutex op is quite fast (I guess max 3 instructions on most CPUs), so - is it really _so_ bad?
Regards, /Al
/ Brevbäraren