Liste des Groupes | Revenir à cl c++ |
On 6/2/2025 3:07 PM, jseigh wrote:I've been doing reader lock-free too long. I just realized howOn 6/1/25 16:31, Chris M. Thomasson wrote:Perhaps. However, using a loop-free exchange is "faster" than a loop based CAS? On Intel, XCHG vs a CMPXCHG loop?On 5/29/2025 2:17 PM, jseigh wrote:>>>>>>
Push may wait-free but pop isn't event lock-free.>Well you actually have a lot of leeway in concurrent queue semantics.
Actually, I like my futex stack experiment as is. normal CAS for push, SWAP for pop. It needs to have multiple stacks and distribute across them because popping all from a single stack can mean a thread gets too much work. Push lock-free, pop wait-free.
>
>
Drop the FIFO requirements since they're not really observable for
all practical purposes and just concentrate on throughput forward
progress.
>
And wait-free is highly overrated. It seems to be important only in
theses, technical papers and obscure blogs, not so much is real world
applications which is one reason I not going to implement it.
>>>
Anyway, after some consideration, I'm off on this
wait-free hazard pointer. The lock-free version is
more than performant.
I did post on my blog how to improve reclaim forward progress for the
wait-free hazard pointer so it's equivalent to a proxy collector.
Les messages affichés proviennent d'usenet.