The BIF statistics(run_queue) is used for estimating future loads. It returns the length of the queue of ready to run processes in the Erlang runtime system.
Eshell V5.8 (abort with ^G)
(master@ST36)1> pool:start(test).
[test@ST36,test@ST37]
(master@ST36)2> pool:attach('haha@ST37').
attached
(master@ST36)3> pool:get_nodes().
[haha@ST37,test@ST36,test@ST37,master@ST36]
(master@ST36)4> pool:get_node().
haha@ST37
(master@ST36)5> pool:get_node().
test@ST36
(master@ST36)6> pool:pspawn(io,format,["hello"]).
<6605.46.0>
hello(master@ST36)7> pool:pspawn(io,format,["hello"]).
hello<0.75.0>
(master@ST36)8> pool:pspawn(io,format,["hello"]).
hello<6648.54.0>
(master@ST36)9> pool:pspawn(io,format,["hello"]).
<6566.48.0>
hello(master@ST36)10> pool:pspawn(io,format,["hello"]).
hello<6605.47.0>
(master@ST36)11> pool:pspawn(io,format,["hello"]).
hello<0.80.0>
(master@ST36)12>