What is Ruby equivalent to Python multiprocessing module?

To get real concurrency in Ruby or Python, I need to create new processes. Python does this quite simply using the multiprocessing module, which abstracts all the benefits of fork / wait and allows me to focus on my code. Does Ruby have something similar? Right now I'm calling Process.fork and Process.wait to get my concurrency, and I want a cleaner solution.

+7
source share
2 answers

I used https://github.com/grosser/parallel and I really like it. By default, it will be #map or # for all kernels of your system. Under the hood, it's a wrapper around Process.fork that sounds like you ask.

+4
source

https://github.com/pmahoney/process_shared let me know if you have any feature requests :)

0
source

All Articles