TinyOS
TinyOS copied to clipboard
Any chance at multicore?
CPU is never instanciated, but is "always" there...like a real CPU. :)
https://github.com/shanselman/TinyOS/blob/master/OS%20Project/CPU.cs#L42
I saw that line and had to chuckle.
This would involve:
- [ ] Create one thread for each virtual CPU
- [ ] Remove all the static members of the CPU class
- [ ] Creating some sort of affinity mechanism for the scheduler to associate processes with CPUs
- [ ] The scheduler would need locks over its resources
- [ ] Syscalls would have to be moved to a new shared entity
- [ ] Probably a million other things this was just a joke
Still...it's a good idea...