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

Synchronize Rayon Max Threads with MT Executor #178

Closed
th4s opened this issue Aug 28, 2024 · 2 comments
Closed

Synchronize Rayon Max Threads with MT Executor #178

th4s opened this issue Aug 28, 2024 · 2 comments

Comments

@th4s
Copy link
Member

th4s commented Aug 28, 2024

In order to prevent deadlocks it is important that the number of parallel rayon threads is synchronized with the MT executor's number of threads.

One approach to do this would be to use local ThreadPools which are owned by MTContext.
It is important that there is a way to inject different types of threadpools to support browser environments.

@sinui0
Copy link
Collaborator

sinui0 commented Oct 22, 2024

@sinui0
Copy link
Collaborator

sinui0 commented Nov 3, 2024

Closing, instead we've moved away from putting logical threads on the global rayon pool. Each logical thread has it's own system thread. See #187

@sinui0 sinui0 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2024
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