-
Notifications
You must be signed in to change notification settings - Fork 206
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 Thread Experiment #2057
Comments
Assume it could also have potential address this issue by @krwq Proposition: Stack bending? |
@benadams, the current experiment as envisioned would allow for arbitrary stack growth (without any need for a magic function to all), but it's not at all clear that would be a practical approach in the long term to actually implement and make reliable. Very deep stacks introduce new, and interesting problems. My suspicion is that we'll actually need to have a constrained stack depth limit. |
@davidwrighton Hi David, is Green-Threads feature still active, or dead? A coroutine c1 wants to write a disk and then update a UI button. But after a half second, c1 has finished the disk writing and wants to get an execution. What will Green-Threads do?
The problem is, OS will set some resources, or restrictions(like UI, tls, mutex, etc.), at thread level. How does Green-Threads handle this problem? |
Wait |
Experiment report has been published in #2398 |
The CoreCLR team is experimenting with using green threads to support customers who are interesting in writing code in a synchronous style, but with the ability to suspend to a fairly small memory footprint when an asynchronous operation occurs. Green threads are
Task
api. Suspension will be implemented viaTask.Wait()
Experimental report published in #2398
The text was updated successfully, but these errors were encountered: