XS-1 Context Switcher (vThreads)
Posted: Sun Jan 31, 2010 10:47 pm
Version: 0.1
Status: Alpha
License: BSD
Download: https://sourceforge.net/projects/vthreads/
Implementation of virtual threads for the XS-1. Currently a simple context switching implementation for the XMOS XS-1 architecture (Gn, Ln products). Allows a user to run low speed processes on a single thread using time sliced scheduling. Features:
Current:
- Initialise threads
- Context Switch on Timer Interrupt (time slice scheduling)
- Functions to allow atomic operations (ClrInt() & SetInt())
Wish List:
- Call to allocate stack space to vthread
- Event support
- More flexible vthread params (ports, chans, etc)
- On demand context switch (when a thread wants to hand over control to another because it doesn't have anything to do)
Status: Alpha
License: BSD
Download: https://sourceforge.net/projects/vthreads/
Implementation of virtual threads for the XS-1. Currently a simple context switching implementation for the XMOS XS-1 architecture (Gn, Ln products). Allows a user to run low speed processes on a single thread using time sliced scheduling. Features:
Current:
- Initialise threads
- Context Switch on Timer Interrupt (time slice scheduling)
- Functions to allow atomic operations (ClrInt() & SetInt())
Wish List:
- Call to allocate stack space to vthread
- Event support
- More flexible vthread params (ports, chans, etc)
- On demand context switch (when a thread wants to hand over control to another because it doesn't have anything to do)