GithubHelp home page GithubHelp logo

plumpmath / hev-task-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heiher/hev-task-system

0.0 1.0 0.0 39 KB

A lightweight multi-task system (coroutines) for Linux

Makefile 6.86% C 83.00% Assembly 10.14%

hev-task-system's Introduction

HevTaskSystem

HevTaskSystem is a simple, lightweight multi-task system (coroutines) for Linux.

The task system is executed by a Linux process/thread. In task system, you can creates many tasks and attachs to task system. When a task yield or blocked by I/O, the scheduler will pick a suitable task from running list and switch to. The memory space, file descriptors and other resources are shared for all tasks in task system. Every task has a private, standalone task structure (#HevTask) and stack in heap of the process.

In task, you can allocate memory from heap, read and write data from to stack, and to do I/O operations in synchronized mode.

How to Build

Linux:

git clone git://github.com/heiher/hev-task-system
cd hev-task-system
make

Android:

mkdir hev-task-system
cd hev-task-system
git clone git://github.com/heiher/hev-task-system jni
nkd-build

Demos

  1. simple
  2. timeout
  3. wakeup
  4. echo-server

Authors

License

LGPL

hev-task-system's People

Contributors

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