Giter Club home page Giter Club logo

zodsoft / libworkqueue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from karlhiramoto/libworkqueue

0.0 2.0 0.0 154 KB

Cross platform, threaded priority work queue scheduler library in C, with optional C++ wrapper. Run jobs based on priority, and/or scheduled time. Tested on Linux, Windows, BSD, OpenSolaris. Schedule jobs based on priority, and X milliseconds in the future. Can also be used as a worker thread pool.

Home Page: http://karl.hiramoto.org/open_source.html

License: Other

Makefile 0.86% Shell 0.30% M4 35.60% C 51.87% C++ 11.37%

libworkqueue's Introduction

libWorkQueue

Build Status

This library is a priority work queue scheduler.

Possible applications of this library is prioritizing, queuing, and/or scheduling:

  • Queue, parallelize, and/or schedule transactions to a synchronous database API.

  • Hardware I/O to a device where commands must be queued.

  • Periodic work that must be scheduled every X period for example:

    • A software watchdog to check that your system is OK.
    • A periodic check of network I/O
    • a cron job scheduler
  • If you have many threads that spend most of the time sleeping or blocked, use libworkqueue to reduce the number of threads and to queue the jobs. The result may be a lower memory footprint by a lower number of threads.

  • If you have other threads and wich to serialize operations you may use libworkqueue to make a FIFO or priority queue.

  • A thread pool. Send work tasks to the pool.

Linux/UNIX

Help on Configure options

	./autogen.sh
	./configure --help

Dependencies to compile: * C compiler * libtool, autoconf, automake (gnu auto tools)

To compile library:

	./autogen.sh
	./configure
	make

To compile examples:

make examples

To install:

make install

To build doxygen documentation graphvis is required:

make doxygen-doc

MS windows

  • Tested on Windows XP SP3 with MS Visual C++ 2008 Express Edition. Load solution libworkqueue.sln

libworkqueue's People

Contributors

karlhiramoto avatar

Watchers

 avatar  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.