Skip to content

An implementation of lockless thread-safe queues in C++

Notifications You must be signed in to change notification settings

subatuba21/michael-scott-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An implementation of Michael-Scott queue in C++

Lock-free queue

Queues are important in a variety of applications in computer science. Some of these include:

  • process scheduling
  • load balancing
  • message queues

In some applications, non-blocking queues are useful. In operating systems, if there's an interrupt while a process is being added to the queue during scheduling, this could result in performance loss as other processors wait for the lock to be released. This is where a lock-free queue can be useful.

I implemented the queue based on the original paper.

Critical technologies/concepts:

  • C++
  • atomic variables
  • memory models

About

An implementation of lockless thread-safe queues in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published