Displaying 1 to 3 from 3 results

greenlet - 🦎 Move an async function into its own thread.

  •    Javascript

Move an async function into its own thread. A simplified single-function version of workerize.

state-threads - Fork from http://sourceforge.net/projects/state-threads, patched for SRS.

  •    C

For SRS, ST is patched for ARM/VALGRIND, please checkout the ST srs branch. The State Threads library is a derivative of the Netscape Portable Runtime library (NSPR) and therefore is distributed under the Mozilla Public License (MPL) version 1.1 or the GNU General Public License (GPL) version 2 or later.

python-fibers - Lightweight cooperative microthreads for Python

  •    C

Fibers are lightweight primitives for cooperative multitasking in Python. They provide means for running pieces of code that can be paused and resumed. Unlike threads, which are preemptively scheduled, fibers are scheduled cooperatively, that is, only one fiber will be running at a given point in time, and no other fiber will run until the user explicitly decides so. When a fiber is created it will not run automatically. A fiber must be 'switched' into for it to run. Fibers can switch control to other fibers by way of the switch or throw functions, which switch control or raise and exception in the target fiber respectively.