Skip to content

Story 5.3 — SMP-safe scheduler #34

Description

@Abhinkop

Goal

Make the scheduler SMP-safe so that tasks do not race across cores.

Tasks

  • Implement spinlock (ldaxr / stlxr / dmb ish)
  • Protect run queue operations with spinlock
  • Implement work-stealing: if local run queue empty, steal from another CPU's queue
  • Test: N tasks across N cores each printing their CPU ID without interleaving corruption

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions