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

New concurrency API based on destructors designed for ORC #693

Open
2 of 27 tasks
ringabout opened this issue Apr 16, 2021 · 0 comments
Open
2 of 27 tasks

New concurrency API based on destructors designed for ORC #693

ringabout opened this issue Apr 16, 2021 · 0 comments
Assignees

Comments

@ringabout
Copy link
Collaborator

ringabout commented Apr 16, 2021

This is a draft(I will keep updating it) for new concurrency API. Everything which is not marked as [OPTIONAL] is required currently. OPTIONAL means that I won't implement it.

Sync primitives

Complete Thread API

Thread Pool

  • Fixed size/static thread pool
  • dynamic thread pool [OPTIONAL]

Context

Event loop

Coroutine [OPTIONAL]

stackful? -- assembly + m:n threads scheduler?
stackless? -- [cps](see nim-lang/RFCs#295)? Do we need all of them? Or based on current closure based on implementation(need cancel operations and a multi-threads scheduler)

Related materials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant