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

Thread control yield key #41

Open
Qix- opened this issue Jan 18, 2025 · 0 comments
Open

Thread control yield key #41

Qix- opened this issue Jan 18, 2025 · 0 comments
Labels
interfaces Relates to interfaces provided by the kernel

Comments

@Qix-
Copy link
Member

Qix- commented Jan 18, 2025

The yield key (WO) on the thread control (v0) interface is dual-function - writing a 0 to it performs an immediate yield of the time slot, marking the thread for rescheduling.

Writing a non-zero value reschedules the thread until after the number of nanoseconds have elapsed.

@Qix- Qix- added the interfaces Relates to interfaces provided by the kernel label Jan 18, 2025
@Qix- Qix- added this to the v0 (killswitch) milestone Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interfaces Relates to interfaces provided by the kernel
Development

No branches or pull requests

1 participant