Giter Site home page Giter Site logo

wwwsyt126 / threadpool11 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tghosgor/threadpool11

0.0 1.0 0.0 4.22 MB

A fast, lock-free, cross-platform C++11 thread pool library that is aiming to be lightweight and simple.

License: GNU Lesser General Public License v2.1

C++ 91.34% CMake 8.66%

threadpool11's Introduction

threadpool11 threadpool11

A fast, almost lock-free, cross-platform, full CPU utilizing thread pool implementation using C++11 features.

You can find the dead simple API documentation on header comments.

This project was initially developed in just a few hours of free time as I could not find a simple lightweight thread pooling library for my needs.

Available on AUR.

threadpool11 performance compared to OpenMP

Here is a result of OpenMP demo found in the tree.

Your machine's hardware concurrency is 8

threadpool11 execution took 22704 milliseconds.

threadpool11 (no future) execution took 21198 milliseconds.

openmp execution took 21663 milliseconds.

openmp execution (dynamic schedule) took 21335 milliseconds.

gcc -v gcc version 8.2.1 20181127 (GCC)

Testing code can be found in project tree.

I will be glad to hear about the suggestions/ideas you have about the project, via the issue reporting section.

All non '-dev' branches are safe to use but prefer the latest version.

Building & Installing

As a Static Library

% mkdir -p build
% cd build
% cmake ..
% make
% make test
% make install

As a Shared Library

% mkdir -p build
% cd build
% cmake -DBUILD_SHARED_LIBS:BOOL=ON ..
% make
% make test
% make install

threadpool11's People

Contributors

tghosgor avatar

Watchers

James Cloos avatar

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.