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

More efficient concurrent queues #6

Open
3 tasks
lindahua opened this issue Feb 12, 2017 · 0 comments
Open
3 tasks

More efficient concurrent queues #6

lindahua opened this issue Feb 12, 2017 · 0 comments

Comments

@lindahua
Copy link
Collaborator

lindahua commented Feb 12, 2017

The current implementation of concurrent_queue relies on a native synchronization mechanism, i.e. lock the entire queue structure whenever it pushes or pops. This leads to limited scalability. There are much more efficient implementation for MPMC Queues (e.g. Dmitry's lock free implementation that relies purely on atomics).

Plan:

  • Rename concurrent_queue to synchronized_queue, which reflects the implementation more accurately.
  • Implement a more efficient bounded_mpmc_queue (MPMC means Multi-Producer-Multi-Consumer).
  • Implement a task queue on top.

References:

@lindahua lindahua changed the title More efficient concurrent queue More efficient concurrent queues Feb 12, 2017
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

No branches or pull requests

1 participant