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

Add new alternative task schedulers to benches #10

Open
Gerold103 opened this issue Aug 17, 2022 · 0 comments
Open

Add new alternative task schedulers to benches #10

Gerold103 opened this issue Aug 17, 2022 · 0 comments
Labels
benchmark documentation Improvements or additions to documentation

Comments

@Gerold103
Copy link
Collaborator

Currently the benches run for mg::serverbox::TaskScheduler and for a trivial lock-based scheduler without any features. Would be interesting to implement a scheduler similar to mg::serverbox::TaskScheduler in terms of feature set but also lock-based. At least its queues should be lock-based. Don't even need to actually implement those features. Should be enough to split front- and ready-queues and have a dedicated sched-role.

Another idea would be to introduce a version of the task scheduler which has a dedicated thread just for scheduling. Without the migrating sched-role like now. So its thread count is always +1 compared to mg::serverbox::TaskScheduler and this additional thread just manages the queues.

Both these new schedulers would be quite close to the serverbox's one in a sense that potentially they could have all the same features like a binary heap with waiting tasks, task wakeups, and all.

@Gerold103 Gerold103 added documentation Improvements or additions to documentation benchmark labels Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant