This works either way, as either way the communications go through a linux
fifo -- and I was wondering whether there's an advantage to either
version.(?)
Example (entirely in julia):
julia> addprocs(1)
1-element Array{Int64,1}:
2
julia> x= @spawnat(2,run(`csound KungFu.csd`)) [This csd file includes
accepting text input through "testfif"]
RemoteRef{Channel{Any}}(2,1,2)
...
julia> function f(str)
fi= open("testfif","w")
write(fi,str)
close(fi)
[Without this line nothing actually goes out]
end
f (generic function with 1 method)
str = "i2 0 10 0 8.02 \n i2 0.1 10 0 8.09 \n i2 0.2 10 0 9.02 \n i2 0.3 10
0 9.06 \n i2 0.4 10 0 9.11 \n i2 0.5 10 0 10.04 \n"
"i2 0 10 0 8.02 \n i2 0.1 10 0 8.09 \n i2 0.2 10 0 9.02 \n i2 0.3 10 0 9.06
\n i2 0.4 10 0 9.11 \n i2 0.5 10 0 10.04 \n"
julia> f(str)
[Notes play]...
------------------------
Should there be any difference in performance?