I've been playing around with Arduino and understand that the standard runtime provides a single thread essentially.
I was wondering if it is possible to write a thin layer (library) that allows one to write code that is non blocking and one where each task yields control manually which allows the master loop to implement some form of timesharing.
I'd appreciate any:
- Comments on existing frameworks that can allow me to write my programs this way
- Any comments on how hard implementing anything of this order of magnitude would be.