MAX_TASKS

Constant MAX_TASKS 

Source
const MAX_TASKS: usize = 1024;
Expand description

Task pool that stores tasks in fixed positions With each Task being 824 bytes, 1024 tasks consume approximately 824 KiB of memory, which is very reasonable for general-purpose systems. TODO: Refactor Task struct to use fine-grained Mutex on individual fields (e.g., state: Mutex, time_slice: Mutex) and change TaskPool to use Arc for safe sharing across threads/contexts. This would also eliminate the fixed-size limitation.