Skip to content

Any chance at multicore? #2

Open
@praeclarum

Description

@praeclarum

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions