Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any chance at multicore? #2

Open
6 tasks
praeclarum opened this issue Jun 30, 2017 · 1 comment
Open
6 tasks

Any chance at multicore? #2

praeclarum opened this issue Jun 30, 2017 · 1 comment

Comments

@praeclarum
Copy link

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
@shanselman
Copy link
Owner

Still...it's a good idea...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants