Git Product home page Git Product logo

concurrent-programs's Introduction

Complementary Programs for course "Linux Kernel Internals"

This distribution is a collection of programs that are generally unrelated, except in that they all deal with the concurrent programming. The main purpose of these programs is to be illustrative and educational.

Project Listing

  • Coroutine
    • coro: A coroutine implementation with setjmp/longjmp.
    • tinync: A tiny nc implementation using coroutine.
    • fiber: A user-level thread (fiber) using clone system call.
    • preempt_sched: A preemptive userspace multitasking based on a SIGALRM signal.
  • Multi-threading Paradigms
    • tpool: A lightweight thread pool.
    • refcnt: A generic reference counting.
  • Producer–consumer problem
    • spmc: A concurrent single-producer/multiple-consumer queue.
    • mpsc: An unbounded lockless single-consumer/multiple-producer FIFO queue.
    • mpmc: A multiple-producer/multiple-consumer (MPMC) queue using Linux futex.
    • lf-queue: A bounded lock-free queue.
    • channel: A Linux futex based Go channel implementation.
    • broadcast: A lock-free MPMC broadcast pub-sub queue.
  • Lock-Free Data Structure
    • ringbuffer: A lock-less ring buffer.
    • lfring: A lock-free multiple-producer/multiple-consumer (MPMC) ring buffer.
    • ringbuf_shm: An optimized lock-free ring buffer with shared memory.
    • mbus: A concurrent message bus.
    • hashmap: A concurrent hashmap implementation.
    • lf-timer: A lock-free timer.
  • Synchronization
    • hp_list: A concurrent linked list utilizing Hazard Pointers.
    • rcu-list: A concurrent linked list utilizing the simplified RCU algorithm.
    • qsbr: An implementation of Quiescent state based reclamation (QSBR).
    • list-move: Evaluation of two concurrent linked lists: QSBR and lock-based.
    • rcu_queue: An efficient concurrent queue based on QSBR.
    • thread-rcu: A Linux Kernel style thread-based simple RCU.
  • Applications
    • httpd: A multi-threaded web server.
    • map-reduce: word counting using MapReduce.
    • redirect: An I/O multiplexer to monitor stdin redirect using timerfd and epoll.
    • picosh: A minimalist UNIX shell.

License

The above projects are released under the BSD 2 clause license. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

concurrent-programs's People

Contributors

jserv avatar lind026 avatar forward-jt avatar rinhizakura avatar henrybear327 avatar chunminchang avatar kevinshieh0225 avatar smallhanley avatar julian-chu avatar csm1735 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.