Open main menu

CDOT Wiki β

Changes

GPU621/Threadless Horsemen

293 bytes added, 10:58, 26 November 2018
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) ===
93
edits