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

Delay should put task to sleep #2

Open
scttnlsn opened this issue Jun 6, 2017 · 0 comments
Open

Delay should put task to sleep #2

scttnlsn opened this issue Jun 6, 2017 · 0 comments

Comments

@scttnlsn
Copy link
Owner

scttnlsn commented Jun 6, 2017

Currently a delay is just a busy loop that yields back to the OS every iteration. Might be better to put the task to sleep and store this time (in the task data structure). Every context switch would first wake up tasks that have been sleeping for long enough.

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

No branches or pull requests

1 participant