Skip to main content

Thread Entity Ontology

Processor Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 09 November 2026
Audio Overview
SEMANTIC LIBRARY — THREAD ENTITY ONTOLOGY
FLOW ALGEBRA v1.0 | PROCESSOR ENTITIES

AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/processor-entities/thread-entity-ontology.html
SOURCE PAGE REVISION: 02 August 2026
FLOW CONSTRUCTION DATE: 09 November 2026
STATUS: Constructed interpretation; the page's full formal specification was not accessible in the retrieved text. The rules below are an original mapping, not a verified transcription.
CITATION: Higgins, Mark Anthony and Sky Recursive AI, "Thread Entity Ontology", Kireth Research, Semantic Library (accessed 09 November 2026).

1. PURPOSE
Model a processor execution thread as a schedulable sequence of instructions, with identity, architectural context, resource bindings, lifecycle and execution constraints. Distinguish an operating-system software thread from a hardware execution context (logical processor / hardware thread).

2. ENTITY MODEL
Thread T = (id, kind, owner, instructions, pc, registers, state, priority, affinity, resources, metrics)
kind ∈ {software, hardware}
state ∈ {created, ready, running, blocked, suspended, terminated}
owner = process for software threads; processor core for hardware contexts.

RELATIONS
Thread --belongs_to--> Process (software thread)
Thread --scheduled_on--> LogicalProcessor
LogicalProcessor --implemented_by--> Core
Thread --shares_address_space_with--> OtherThreadsInSameProcess
Thread --waits_for--> ResourceOrEvent
Thread --executes--> InstructionSequence

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = thread identity, context, instruction pointer and observable runtime state
R_t = valid execution, scheduling and synchronisation rules
B_t = resource limits, permissions, deadlines and safety boundaries
K_t = architecture, scheduler, memory and process knowledge

4. FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t | satisfies(x, B_t)}
x*_t = argmax_{x ∈ V_t} P(x | I_t, R_t, B_t, K_t)
I_{t+1} = update(I_t, x*_t)

Interpretation: candidate actions are generated from admissible thread transitions, filtered by hard constraints and selected under the specified policy. P is a policy score or probability only when such a model is defined; this formalism does not itself guarantee a probabilistic scheduler.

5. STATE TRANSITIONS
create: absent -> created -> ready
schedule: ready -> running, if a logical processor is available
preempt: running -> ready, after context save
wait: running -> blocked, when awaiting an event/resource
wake: blocked -> ready, when the wait condition is met
suspend: ready/running/blocked -> suspended, subject to scheduler policy
resume: suspended -> ready or blocked, depending on outstanding conditions
exit: running -> terminated, with cleanup

6. EXECUTION PATHWAY
input: thread context, runnable queue, scheduler policy, available logical processors
validate identity, permissions and lifecycle state
check dependencies, affinity and processor availability
select eligible thread under scheduling policy
restore context -> dispatch -> execute instruction(s)
handle interrupt, syscall, yield, block, preemption or completion
save context, update metrics and state, requeue or terminate
output: updated thread and scheduler states

7. INFERENCE RULES
IF state=ready AND eligible_processor_exists THEN thread is dispatchable.
IF state=blocked AND wait_condition_satisfied THEN transition to ready is permitted.
IF running AND quantum_expired AND preemption_enabled THEN preemption is permitted.
IF terminated THEN further instruction execution is prohibited.
IF two software threads share mutable memory THEN synchronisation may be required to prevent data races.
IF hardware contexts share a core THEN execution resources may be contended.
IF affinity excludes all available logical processors THEN dispatch is not currently possible.

8. RECURSIVE PROCESSING ENGINE
For each scheduler event at time t:
  observe thread state and environment
  derive candidate legal transitions
  reject candidates violating invariants
  choose permitted transition under scheduler policy
  apply transition and record evidence
  repeat until termination or externally imposed stopping boundary

9. INVARIANTS AND BOUNDARIES
A software thread belongs to one owning process at a time.
At most one logical processor executes a given software thread at an instant under a conventional non-migratory execution model; migration may occur between instants.
A terminated thread cannot be dispatched without creation of a new execution entity.
A blocked thread is not runnable until its blocking condition is resolved or explicitly interrupted.
Thread priority does not guarantee immediate execution.
Concurrency is not equivalent to parallelism.
Hardware threads and software threads are distinct entity types.
Deadlock, starvation, races and priority inversion are possible and require explicit handling.

10. SEMANTIC EQUIVALENCE AND DISAMBIGUATION
thread ≠ process
software thread ≠ hardware thread
thread state ≠ processor core state
ready ≠ running
concurrent execution ≠ simultaneous execution

11. OBSERVABILITY
metrics = {cpu_time, wait_time, context_switches, dispatch_count, latency, blocking_events}
log = {thread_id, timestamp, previous_state, event, next_state, processor_id, outcome}
Evidence must support each claimed state transition.

12. EXECUTION GUARANTEE — CONDITIONAL
Given well-formed state, a finite candidate set, a terminating selector and enforced invariants, each accepted transition preserves the stated lifecycle constraints. No unconditional guarantee of fairness, liveness, deadlock freedom or real-time deadline satisfaction is implied.

13. UPDATE MODEL
On architecture, scheduler or ontology revision:
  revalidate entity types and relationships
  revise permitted transitions and invariants
  version the mapping and preserve provenance
  rerun consistency checks

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ