Skip to content

More efficient concurrent queues #6

@lindahua

Description

@lindahua

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions