93
edits
Changes
→Julia's Forms of Parallelism
https://www.youtube.com/watch?v=RlogUNQTf-M (Introduction to Julia and its Parallel Implmentation, 2:00)
<source>
#Example
# @everywhere lets all processes be able to call the function
@everywhere function whoami()
println(myid(), gethostname())
end
remotecall_fetch(whoami, 2)
remotecall_fetch(whoami, 4)
</source>
Source: https://www.dursi.ca/post/julia-vs-chapel.html#parallel-primitives
=== Coroutines (Green Threads) ===