In [1]:
addprocs(5)


Out[1]:
5-element Array{Any,1}:
 2
 3
 4
 5
 6

In [2]:
rmatrix = remotecall(4, rand, 2, 2)
print(rmatrix)


RemoteRef(4,1,39)

In [3]:
fetch(rmatrix)


Out[3]:
2x2 Array{Float64,2}:
 0.0580339  0.952291
 0.879647   0.970466

In [4]:
remotecall_fetch(4, rand, 2, 2)


Out[4]:
2x2 Array{Float64,2}:
 0.817635   0.683178
 0.0215903  0.728844

In [5]:
m1 = @spawnat 3 rand(3,3)


Out[5]:
RemoteRef(3,1,42)

In [6]:
m2 = @spawn randbool(3,3)


Out[6]:
RemoteRef(2,1,43)

In [7]:
fetch(m1)


Out[7]:
3x3 Array{Float64,2}:
 0.607232   0.493364  0.23908 
 0.834828   0.439527  0.476135
 0.0342532  0.791243  0.848814

In [8]:
fetch(m2)


Out[8]:
3x3 BitArray{2}:
 false   true  false
 false  false   true
 false  false  false

In [9]:
fetch(m1) .* fetch(m2)


Out[9]:
3x3 Array{Float64,2}:
 0.0  0.493364  0.0     
 0.0  0.0       0.476135
 0.0  0.0       0.0     

In [10]:
int64(fetch(m2))


Out[10]:
3x3 Array{Int64,2}:
 0  1  0
 0  0  1
 0  0  0

In [11]:
fetch(m1) * int64(fetch(m2))


Out[11]:
3x3 Array{Float64,2}:
 0.0  0.607232   0.493364
 0.0  0.834828   0.439527
 0.0  0.0342532  0.791243