\s [N]

Show or , where N is an integer, set the number of secondary threads available for parallel processing, within the limit set by the -s command-line option. N is an integer.

Since V3.5 2017.05.02, secondary threads can be adjusted dynamically up to the maximum specified on the command line. A negative N indicates processes should be used, instead of threads.

q)0N!("current secondary threads";system"s");system"s 4";0N!("current,max secondary threads";system"s";system"s 0N"); / q -s 8
("current secondary threads";0i)
("current,max secondary threads";4i;8i)
q)system"s 0" / disable secondary threads
q)system"s 0N" / show max secondary threads
8i
N    parallel processing uses
------------------------------------
>0   N threads
<0   processes with handles in .z.pd

For processes: