Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A collector-reporter strategy with up to 3 count reports #15

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

keijak
Copy link

@keijak keijak commented Dec 19, 2018

An improvement to: #11

This strategy effectively uses N switches as an N-bit counter.
Up to (2^N - 1) workers can increment the counter in each collection cycle.
It's N=2 in our problem, but this algorithm can be easily generalized to arbitrary number of switches (including N=1 as I submitted separately).

@keijak keijak changed the title A collector-worker strategy with up to 3 count reports A collector-reporter strategy with up to 3 count reports Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant