Skip to content

Document Concept: CoreThreadScheduling (Value 5) #48

@LSantha

Description

@LSantha

<<EOF

CoreThreadScheduling

Document the CoreThreadScheduling JNode concept in the wiki.

Value: 5

Concept Summary

Hybrid preemptive/cooperative thread scheduler with yieldpoints and TSI (Thread State Indicator) that manages how threads are scheduled for execution on the CPU.

Key Files

  • core/src/core/org/jnode/vm/scheduler/TSI.java
  • core/src/core/org/jnode/vm/scheduler/ThreadScheduler.java
  • core/src/core/org/jnode/vm/scheduler/Dispatcher.java

Occurrences

~200 references in core/src/core

Wiki Status

Partially covered (page exists but incomplete)

Bridges

VM, Scheduler, Thread management

Instructions

Skill to Use

Use the [[update-wiki|update-wiki skill]] for understanding JNode internals and debugging thread behavior.

Context Research

Search for thread scheduling concepts in the scheduler package (core/src/core/org/jnode/vm/scheduler/) to understand the hybrid scheduling model, TSI usage, and yieldpoint implementation.

Update index.md

  • Pages table: Add entry for [[Core-Thread-Scheduling]] page
  • Concepts → Pages table: Add "CoreThreadScheduling" concept mapping to [[Core-Thread-Scheduling]]
  • Source Path → Pages table: Add mapping core/src/core/org/jnode/vm/scheduler/ → [[Core-Thread-Scheduling]]
  • Task Routing table: Add route: "Debugging thread issues" → [[Core-Thread-Scheduling]], [[Interrupt-Handling]], [[Architecture]]

Wiki Page Structure

Follow the standard hub/spoke template with sections: Overview, Key Components, How It Works, Gotchas & Non-Obvious Behavior, Related Pages.

Requirements by Value

  • Value 5 & 4: Update ALL 4 index sections + consider meaningful task routing ideas (up to 1-3)
  • Value 5, 4, 3: Update [[Glossary]] with concept definition
  • Value < 3: Update index as appropriate

Related Concepts: TSI, Yieldpoint, Thread-Scheduling, Interrupt-Handling

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