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

rework pid/tid assignment algorithm #26

Open
mikbras opened this issue Jan 22, 2021 · 0 comments
Open

rework pid/tid assignment algorithm #26

mikbras opened this issue Jan 22, 2021 · 0 comments
Labels
area/kernel Area: Kernel severity/low Severity: Low status/triaged Status: Triaged

Comments

@mikbras
Copy link
Contributor

mikbras commented Jan 22, 2021

Currently pid's and tid's are assigned using a simple increasing integer that wraps at some point (plus 100). This could cause conflicts when more than 4 billion threads have been created.

Instead we propose using a bit string that is 64536 bits (or 8192 bytes). We propose scanning from the last bit assigned and wrapping on end of bit string.

@paulcallen paulcallen added area/kernel Area: Kernel severity/low Severity: Low status/triaged Status: Triaged labels May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kernel Area: Kernel severity/low Severity: Low status/triaged Status: Triaged
Projects
None yet
Development

No branches or pull requests

2 participants