Code Monkey home page Code Monkey logo

concurrencyfreaks's Introduction

ConcurrencyFreaks
=================

A library of concurrent data structures and synchronization mechanisms.
More info on http://concurrencyfreaks.blogspot.com/

C11 - Some locks implemented in the C11 language
CPP - Some locks and data structures implemented in C++1x, mostly lock-free and wait-free queues. You should use a compiler that supports C++14 (like gcc 4.9.1) because some classes use std:shared_timed_mutex
D - Some data structures implemented in the D programming language
Java - Synchronization mechanisms and data structures (mostly lock-free and wait-free queues) implemented in Java. Some of them need Java 8 or above.

concurrencyfreaks's People

Contributors

anoncoderonline avatar oerdnj avatar pramalhe avatar wanpengqian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

concurrencyfreaks's Issues

No LICENSE.txt file?

You don't have a license file in your repo, making your code impossible to reuse in a commercial or open-source context.

Could you please add a license? May I recommend you use Apache 2.0 because it's both business and open-source friendly (covers patents, copyright, contributions etc).

Here's what GitHub's own Choose-A-License site has to say about the Apache 2.0 license

But really, just pick a license, even if it is to say "we do not provide a copyright license at all, you cannot re-use this code" to reduce confusion. (Although I'd greatly prefer it if you used a liberal open-source license.)

Disclaimer: I am not a lawyer and this is not legal advice.

change pthread_mutex_t to pthread_spinlock_t

Hi!

All the lock implementation based on some spin (sched_yield), but you compare with pthread lock that could block, to get better comparison change the pthread from mutex to spin.
Note that when I tested with pthread_spinlock_t it give the best ops/s (So on when I changed the spin implementation to sched_yield in between).

J

Deallocate Memory of a shrinking queue

Which queue has the best deallocation behavior when a once large queue is shrunken? I'm looking for a FIFO queue which releases most of it's memory when shrinking again.

Adding a citation.cff file.

I greatly appreciate the work that you have put into this repository.

Reading through your papers and code has influenced a number of descisions that I made in my undergraduate disseration! I was wondering if you would be willing to add a CITATION.CFF file (link to documentation) inside of the repo in order to aid with correctly citing your work.

/readindicators folder

There doesn't appear to be a readindicators folder committed, but it is referenced in many of the CPP algorithms.

C'tor, enqueue, dequeue need range checking

In C++ code c'tor needs to throw when maxThreads out of range. Calls to enqueue and dequeue should fail when tid out of range. Checking for those values being negative can be avoided by changing parameters from int to unsigned...
Jack Goral

Home page link is incorrect

You may want to modify the github project page to link to http://concurrencyfreaks.blogspot.com/ instead of http://www.concurrencyfreaks.com/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.