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

GREEN-THREADS looks unprotected in SMP environments #5

Open
dbmcclain opened this issue Oct 23, 2020 · 1 comment
Open

GREEN-THREADS looks unprotected in SMP environments #5

dbmcclain opened this issue Oct 23, 2020 · 1 comment

Comments

@dbmcclain
Copy link

dbmcclain commented Oct 23, 2020

It appears that Green Threads are intended to cycle amongst themselves on a single system thread, using THREAD-YIELD to pass control to the next available green thread.

But there is nothing to prevent multiple instances of the same green threads running concurrently on multiple cores in a multi-core SMP system.

This can become inherently unsafe unless the client programmer is fully aware of this situation. There is no warning of this in the current Green Threads documentation.

@sabracrolleton
Copy link

Is this project still alive?

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

2 participants