Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New scheduler structure & other minor refactorings #102

Merged
merged 9 commits into from
Feb 19, 2024

Conversation

florianhartung
Copy link
Collaborator

This PR refactors the scheduling to decrease coupling and code complexity between the scheduler and partition/process management code.
To do this, all the code for how processes are run is moved into partition.rs. In this way the scheduler is only responsible for scheduling when the processes are ran.

Other minor refactorings include:

  • introduce datatypes for storing the partition schedule: scheduler::ScheduledTimeframe, scheduler::PartitionSchedule
  • use of scheduler::Timeout struct wherever possible to keep track of time

@florianhartung florianhartung marked this pull request as ready for review February 19, 2024 13:32
@sevenautumns sevenautumns merged commit b0470e3 into main Feb 19, 2024
10 checks passed
@sevenautumns sevenautumns deleted the dev/new-scheduler-structure branch February 19, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants