GithubHelp home page GithubHelp logo

ezhangle / basic-job-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from delscorcho/basic-job-system

0.0 1.0 0.0 117 KB

Job system (requires C++11)

License: MIT No Attribution

C++ 97.14% C 2.86%

basic-job-system's Introduction

C++ Job System (Requires C++11 but nothing newer than that)

Implements a typical job system with features I've found useful in practice (Games, mostly).

Features include:

  • Simple interfaces for submitting, monitoring, and canceling jobs.
  • Easy-to-configure affinities and policies to match workers to cores, as well as jobs to specific workers, which is useful for maximizing data-sharing and cache performance by constraining jobs operating in the same areas of memory to the same cluster(s).
  • Basic work-stealing algorithm, enabling internal load-balancing between worker threads; currently lock-based.
  • Full support for job dependency graphs.
  • External thread-assist: Any thread outside of the worker pool can temporarily assist in job processing until some particular job is complete. A surprising percentage of production job systems lack this, leaving the producer thread to block/wait for jobs to be completed by the worker pool, which depending on your thread configuration can be a huge waste.
  • Bare-bones but useful "profiler" showing a timeline for each worker with utilization over time. Jobs can be submitted with an optional "debug character", which allows one to visualize when specific jobs ran, for how long, and on which workers.
  • Simple, straightforward, easy to modify.
  • No silly super modern C++, so does not rely on brand new compiler versions and potentially buggy STL implementations.
  • MIT permissive license.

Bug fixes, suggestions, complaints, and any knowledge I lack is more than welcome. This isn't something I've iterated on heavily, and certainly wouldn't consider myself an expert in job system research.

basic-job-system's People

Contributors

delscorcho avatar

Watchers

 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.