-
Notifications
You must be signed in to change notification settings - Fork 0
readyFiberCount
ffredyk edited this page Jul 23, 2026
·
1 revision
Scheduler Management
Unary — readyFiberCount <schedulerId>.
readyFiberCount <number>
Returns the number of ready fibers on the given scheduler — fibers that are not sleeping or awaiting and are eligible to run on the next scheduler tick. High ready count means the scheduler has work queued up.
Counts fibers in the scheduler's ready queue only — excludes fibers in the waiting list (sleep/await).
_ready = readyFiberCount 1; // e.g., 5
systemChat f"Ready fibers: {_ready}";_ready = readyFiberCount _schedulerId;
if (_ready > 50) then {
systemChat f"Scheduler {_schedulerId} backlogged: {_ready} fibers waiting";
};_total = fiberCount 1;
_ready = readyFiberCount 1;
_pctReady = if (_total > 0) then { _ready / _total * 100 } else { 0 };
systemChat f"{_pctReady}% fibers ready to run";ReadOnly — approximate snapshot. Safe from any scheduler.
- fiberCount — total fibers (ready + waiting)
- waitingFiberCount — sleeping/awaiting fibers
- schedulerLoad — load percentage
- Getting Started
- Language Guide
- Type System
- Control Flow
- Functions & Code
- Strings & Text
- Arrays & Collections
- Concurrency
- Promise System
- Thread Safety
- Host API & Embedding
- CLI Tool
- Bytecode Reference
- Multiplayer
- Syntax Sugar
- Optimization Guide
- Benchmarks
- count
- select
- pushBack
- append
- deleteAt
- deleteRange
- resize
- reverse
- sort
- find
- in
- forEach
- freeze
- thaw
- isFrozen
- currentScheduler
- clientOwner
- allSchedulers
- schedulerName
- schedulerExists
- schedulerBudget
- setSchedulerBudget
- fiberCount
- readyFiberCount
- waitingFiberCount
- schedulerLoad
- sendTo