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

Re-implement timer_sleep to avoid busy waiting #1

Closed
hangpark opened this issue Mar 24, 2017 · 1 comment
Closed

Re-implement timer_sleep to avoid busy waiting #1

hangpark opened this issue Mar 24, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@hangpark
Copy link
Owner

No description provided.

@hangpark hangpark added this to the Project #1 milestone Mar 24, 2017
@hangpark hangpark self-assigned this Mar 24, 2017
@hangpark
Copy link
Owner Author

Above commits are deleted and replaced with below tidy commits which are totally same modifications:

hangpark added a commit that referenced this issue Mar 24, 2017
`timer_list` is added to store threads blocked by `timer_sleep()`. Each thread
stores `timer_ticks` and it would be used for only the case that the
thread is blocked by the timer.
hangpark added a commit that referenced this issue Mar 24, 2017
Timer blocks threads insteads of yielding with storing ticks to wake up.
It also adds threads into `timer_list` to manage waiting threads with
ordered by their `timer_ticks`.
hangpark added a commit that referenced this issue Mar 24, 2017
`timer_interrupt()` unblocks threads whose `timer_ticks` is elapsed out.
@hangpark hangpark mentioned this issue Apr 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant