Skip to main content

Module task

Module task 

Source
Expand description

Task Management

Defines the Task structure and related types for the Strat9-OS scheduler.

Structs§

CpuContext
CPU context saved/restored during context switches.
ExtendedState
FPU/SSE/AVX extended state, saved and restored on context switch.
KernelStack
Kernel stack for a task
SyncUnsafeCell
A wrapper around UnsafeCell that implements Sync for TaskState
Task
Represents a single task/thread in the system
TaskId
Unique identifier for a task
UserStack
User stack for a task (when running in userspace)

Enums§

TaskPriority
Priority levels for tasks
TaskState
State of a task in the scheduler

Type Aliases§

Pid
POSIX process ID.
Tid
POSIX thread ID.