Thread
Simple Arduino library for iterative multithreading with time division
Install / Use
/learn @slavaza/ThreadREADME
Thread
It is simplest implementation of iterative multithredaing for AVR8 microcontrollers. You can install this library by the library manager Arduino also.
Using
See example for how to.
functions
spawn(..) create new thread with function and unique stack resources
yield() switch execution to next thread immediately
hold() disable yield() and time division functionality
schedule() enable yield() functionality only (switching points)
quantize() enable time division of the execution flows and yield()
grab(..) implement mutual exclusion barrier lock (semaphore)
loose(.) unlock barrier what has been locked by grab(..) call
constant
MAIN pointer to dummy stack of the main root thread
variables
thread dynamic pointer on the process stack structure
what can be used for reentrant and identification
Related Skills
node-connect
341.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.5kCommit, push, and open a PR
