Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
using Distributed
|
||||
@everywhere include_string(Main, $(read("count_heads.jl", String)), "count_heads.jl")
|
||||
|
||||
a = @spawn count_heads(100000000) # runs on an available processor
|
||||
b = @spawn count_heads(100000000) # runs on another available processor
|
||||
|
||||
println(fetch(a)+fetch(b)) # total heads of 200 million coin flips, half on each CPU
|
||||
Loading…
Add table
Add a link
Reference in a new issue