Revert "Added Landscape.io badge"
[libcds.git] / readme.md
1 CDS C++ library\r
2 ===============\r
3 [![GitHub version](https://badge.fury.io/gh/khizmax%2Flibcds.svg)](http://badge.fury.io/gh/khizmax%2Flibcds)\r
4 [![Coverity Scan Build Status](https://scan.coverity.com/projects/4445/badge.svg)](https://scan.coverity.com/projects/4445)\r
5 \r
6 The Concurrent Data Structures (CDS) library is a collection of concurrent containers\r
7 that don't require external (manual) synchronization for shared access, and safe memory reclamation (SMR) \r
8 algorithms like [Hazard Pointer](http://en.wikipedia.org/wiki/Hazard_pointer) \r
9 and user-space [RCU](http://en.wikipedia.org/wiki/Read-copy-update). \r
10 CDS is mostly header-only template library. Only SMR core implementation is segregated to .so/.dll file.\r
11 \r
12 The library contains the implementations of the following containers:\r
13   - [lock-free](http://en.wikipedia.org/wiki/Non-blocking_algorithm) stack with optional elimination support\r
14   - several algo for lock-free queue, including classic Michael & Scott algorithm and its derivatives,\r
15     the flat combining queue, the segmented queue.\r
16   - several implementation of unordered set/map - lock-free and fine-grained lock-based\r
17   - [flat-combining] (http://mcg.cs.tau.ac.il/projects/projects/flat-combining) technique\r
18   - lock-free [skip-list](http://en.wikipedia.org/wiki/Skip_list)\r
19   \r
20 Generally, each container has an intrusive and non-intrusive (STL-like) version belonging to \r
21 *cds::intrusive* and *cds::container* namespace respectively.\r
22 \r
23 Version 2.x of the library is written on C++11 and can be compiled by GCC 4.8+, clang 3.3+, Intel C++ 15+, \r
24 and MS VC++ 12 (2013) Update 4.\r
25 \r
26 Download the latest release from http://sourceforge.net/projects/libcds/files/\r
27 \r
28 See online doxygen-generated doc here: http://libcds.sourceforge.net/doc/cds-api/index.html\r
29 \r
30 **Pull request requirements**\r
31 - Pull-request to *master* branch will be unconditionally rejected\r
32 - *integration* branch is intended for pull-request. Usually, *integration* branch is the same as *master*\r
33 - *dev* branch is intended for main developing. Usually, it contains unstable code\r
34 \r
35 \r
36 References\r
37 ----------\r
38 *Stack*\r
39   - *TreiberStack*: [1986] R. K. Treiber. Systems programming: Coping with parallelism. Technical Report RJ 5118, IBM Almaden Research Center, April 1986.\r
40   - Elimination back-off implementation is based on idea from [2004] Danny Hendler, Nir Shavit, Lena Yerushalmi "A Scalable Lock-free Stack Algorithm"\r
41   - *FCStack* - flat-combining wrapper for *std::stack*\r
42         \r
43 *Queue*\r
44   - *BasketQueue*: [2007] Moshe Hoffman, Ori Shalev, Nir Shavit "The Baskets Queue"\r
45   - *MSQueue*:\r
46     * [1998] Maged Michael, Michael Scott "Simple, fast, and practical non-blocking and blocking concurrent queue algorithms"\r
47     * [2002] Maged M.Michael "Safe memory reclamation for dynamic lock-free objects using atomic reads and writes"\r
48     * [2003] Maged M.Michael "Hazard Pointers: Safe memory reclamation for lock-free objects"\r
49   - *RWQueue*: [1998] Maged Michael, Michael Scott "Simple, fast, and practical non-blocking and blocking concurrent queue algorithms"\r
50   - *MoirQueue*: [2000] Simon Doherty, Lindsay Groves, Victor Luchangco, Mark Moir "Formal Verification of a practical lock-free queue algorithm"\r
51   - *OptimisticQueue*: [2008] Edya Ladan-Mozes, Nir Shavit "An Optimistic Approach to Lock-Free FIFO Queues"\r
52   - *SegmentedQueue*: [2010] Afek, Korland, Yanovsky "Quasi-Linearizability: relaxed consistency for improved concurrency"\r
53   - *FCQueue* - flat-combining wrapper for *std::queue*\r
54   - *TsigasCycleQueue*: [2000] Philippas Tsigas, Yi Zhang "A Simple, Fast and Scalable Non-Blocking Concurrent FIFO Queue for Shared Memory Multiprocessor Systems"\r
55   - *VyukovMPMCCycleQueue* Dmitry Vyukov (see http://www.1024cores.net)\r
56 \r
57 *Deque*\r
58   - flat-combining deque based on *stl::deque*\r
59 \r
60 *Map, set*\r
61   - *MichaelHashMap*: [2002] Maged Michael "High performance dynamic lock-free hash tables and list-based sets"\r
62   - *SplitOrderedList*: [2003] Ori Shalev, Nir Shavit "Split-Ordered Lists - Lock-free Resizable Hash Tables"\r
63   - *StripedMap*, *StripedSet*: [2008] Maurice Herlihy, Nir Shavit "The Art of Multiprocessor Programming"\r
64   - *CuckooMap*, *CuckooSet*: [2008] Maurice Herlihy, Nir Shavit "The Art of Multiprocessor Programming"\r
65   - *SkipListMap*, *SkipListSet*: [2008] Maurice Herlihy, Nir Shavit "The Art of Multiprocessor Programming"\r
66         \r
67 *Ordered single-linked list*\r
68   - *LazyList*: [2005] Steve Heller, Maurice Herlihy, Victor Luchangco, Mark Moir, William N. Scherer III, and Nir Shavit "A Lazy Concurrent List-Based Set Algorithm"\r
69   - *MichaelList*: [2002] Maged Michael "High performance dynamic lock-free hash tables and list-based sets"\r
70 \r
71 *Priority queue*\r
72   - *MSPriorityQueue*: [1996] G.Hunt, M.Michael, S. Parthasarathy, M.Scott "An efficient algorithm for concurrent priority queue heaps"\r
73 \r
74 *Tree*\r
75   - *EllenBinTree*: [2010] F.Ellen, P.Fatourou, E.Ruppert, F.van Breugel "Non-blocking Binary Search Tree"\r
76 \r
77 *SMR*\r
78   - Hazard Pointers\r
79     * [2002] Maged M.Michael "Safe memory reclamation for dynamic lock-freeobjects using atomic reads and writes"\r
80     * [2003] Maged M.Michael "Hazard Pointers: Safe memory reclamation for lock-free objects"\r
81     * [2004] Andrei Alexandrescy, Maged Michael "Lock-free Data Structures with Hazard Pointers"\r
82   - User-space RCU\r
83     * [2009] M.Desnoyers "Low-Impact Operating System Tracing" PhD Thesis,\r
84              Chapter 6 "User-Level Implementations of Read-Copy Update"\r
85     * [2011] M.Desnoyers, P.McKenney, A.Stern, M.Dagenias, J.Walpole "User-Level\r
86              Implementations of Read-Copy Update"\r
87 \r
88 *Memory allocation*\r
89   - [2004] M.Michael "Scalable Lock-free Dynamic Memory Allocation"\r
90 \r
91 *Flat Combining* technique\r
92   - [2010] Hendler, Incze, Shavit and Tzafrir "Flat Combining and the Synchronization-Parallelism Tradeoff"\r