Idiom # 30: Parallelize execution of 1000 independent tasks
See programming-idioms.org:
Code
Thread Concurrency in Fuzion is provided though the
effect concur.thread
. This effect provides an
operation spawn
that computes a function in parallel.
Running Example
Alternatively, we can use map
:
last changed: 2024-07-01