Any example of multicore (multprocessing) Crystal program?

Hi All,
I just read this article: https://dev.to/jgaskins/enabling-crystal-s-new-multicore-support-4l4g

Is there any working example of Crystal program that uses multicore multiprocessing (not traditional single-CPU multithreading) that I can study (aside from the one-liner in the mentioned article)?

Thanks

1 Like

https://crystal-lang.org/2019/09/06/parallelism-in-crystal.html. Specifically the ones used in the benchmarks at https://github.com/bcardiff/crystal-benchmarks.

1 Like

Many thanks. I just download and tried the benchmarks. It is really impressive to see these benchmarks to run on all the cores of my I7 with such a simple code.

1 Like