Skip to content

Instantly share code, notes, and snippets.

@pjvds
Created January 30, 2015 11:29
Show Gist options
  • Select an option

  • Save pjvds/cdb1c4348a6a9250cbaf to your computer and use it in GitHub Desktop.

Select an option

Save pjvds/cdb1c4348a6a9250cbaf to your computer and use it in GitHub Desktop.
+-+ +-+ +-+ +-+ +-+
|1| |2| |3| |4| |5|
+-+ +-+ +-+ +-+ +-+
^ ^ ^
SUB A SUB B WRITER
@pjvds

pjvds commented Jan 30, 2015

Copy link
Copy Markdown
Author

What if the bucket count is bound to 5, and the writer wants to advance (cycle, like in a ring buffer) to 1?

How to synchronise the positions in a lockless fashion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment