[prev in list] [next in list] [prev in thread] [next in thread]
List: netbsd-users
Subject: Re: pthreads condition variables
From: raymond.meyer () rambler ! ru
Date: 2009-11-19 14:52:25
Message-ID: 20091119145225.f3652c36.raymond.meyer () rambler ! ru
[Download RAW message or body]
On Thu, 19 Nov 2009 15:28:16 +0100
Jean-Yves Migeon <jeanyves.migeon@free.fr> 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?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic