In addition to what Fred said, `addprocs()` adds new workers, i.e. 
processes, which are not necessary bound to your CPU cores. 

On Friday, May 20, 2016 at 6:05:05 AM UTC+3, SHORE SHEN wrote:
>
> Hi
>
> Im doing a loop and need parallel computing.
>
> from the doc, it is said to "julia -p n" command to start n processor in 
> local mashine
>
> however here's the result:
>
> julia> julia -p 2
> ERROR: syntax: extra token "2" after end of expression
>
> also I tried addprocs(n), my computer is 4 core 8 threads, but I can add 9 
> processors.........
>
>
> so if anyone can tell me how i should start all 4 core in my computer and 
> what is the difference between julia -p n and addprocs(n).
>
> thanks a lot
>

Reply via email to