[dpdk-dev] [PATCH v3 1/3] ring: read tail using atomic load

Bruce Richardson bruce.richardson at intel.com
Mon Oct 8 16:43:49 CEST 2018


On Mon, Oct 08, 2018 at 09:22:05AM +0000, Ola Liljedahl wrote:
<snip> 
> "* multi-producer safe lock-free ring buffer enqueue"
> The comment is also wrong. This design is not lock-free, how could it be when there is spinning
> (waiting) for other threads in the code? If a thread must wait for other threads, then by definition
> the design is blocking.
>
My understanding is that the code is lock-free but not wait-free, though
I'm not an expert in this area.

/Bruce


More information about the dev mailing list