File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,10 @@ co-ordinate their processing by referencing the same remote `Channel`.
38
38
Each process has an associated identifier. The process providing the interactive Julia prompt
39
39
always has an ` id ` equal to 1. The processes used by default for parallel operations are referred
40
40
to as "workers". When there is only one process, process 1 is considered a worker. Otherwise,
41
- workers are considered to be all processes other than process 1.
41
+ workers are considered to be all processes other than process 1. As a result, adding 2 or more
42
+ processes is required to gain benefits from parallel processing methods like [ ` pmap ` ] ( @ref ) . Adding
43
+ a single process is beneficial if you just wish to do other things in the main process while a long
44
+ computation is running on the worker.
42
45
43
46
Let's try this out. Starting with ` julia -p n ` provides ` n ` worker processes on the local machine.
44
47
Generally it makes sense for ` n ` to equal the number of CPU threads (logical cores) on the machine. Note that the ` -p `
You can’t perform that action at this time.
0 commit comments