NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pthreads condition variables

On Thu, 19 Nov 2009 15:28:16 +0100
Jean-Yves Migeon <> wrote:

> Something like:
> while (atomic_cas(...there_is_nothing_to_do...))
>     sched_yield();

How does atomic_cas affect performance? If machine supports hadware cas
instruction, does it suspend all cores/processors from fetching data
because it locks address/data bus, or does it suspend only those
cores/processors which are trying to read/modify the same address on
which cas is operating at that time instance?

Home | Main Index | Thread Index | Old Index