privacy-scaling-explorations / mpz

Multi-party computation libraries written in Rust 🦀
211 stars 44 forks source link

Synchronize Rayon Max Threads with MT Executor #178

Closed th4s closed 2 weeks ago

th4s commented 2 months ago

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 commented 1 month ago

https://github.com/RReverser/wasm-bindgen-rayon/issues/18

sinui0 commented 2 weeks ago

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