Skip to content

Go's concurrent and scalable lock-free data structures are based on the concept of a Treiber stack.

Notifications You must be signed in to change notification settings

peletor/treiber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Treiber

Go's concurrent and lock-free data structures are based on a concept known as a Treiber stack.

This package contains data structures:

Stack

implements methods:

  • Push – adds an element to the collection.
  • Pop – removes the most recently added element.
  • Top – retrieves the value from the top of the stack.

Queue

implements methods:

  • Push – adds an element to the end of the queue.
  • Pop – removes an element from the beginning of the queue.

Deque

implements methods:

  • PushBack – adds an element to the end of the deque.
  • PushFront – adds an element to the beginning of the deque.
  • PopBack – removes an element from the end of the deque.
  • PopFront – removes an element from the beginning of the deque.

About

Go's concurrent and scalable lock-free data structures are based on the concept of a Treiber stack.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages