Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 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