Module scheduler

Source
Expand description

Scheduler module

The scheduler module is responsible for scheduling tasks on the CPU. Currently, the scheduler is a simple round-robin scheduler with separate queues for different task states to improve efficiency:

  • ready_queue: Tasks that are ready to run
  • blocked_queue: Tasks waiting for I/O or other events
  • zombie_queue: Finished tasks waiting to be cleaned up

This separation avoids unnecessary iteration over blocked/zombie tasks during normal scheduling operations.

Structs§

Scheduler

Statics§

SCHEDULER 🔒

Functions§

get_scheduler
make_test_tasks