but length of list still not know
how do it split the list without running the length first?
On Monday, July 25, 2016 at 3:45:02 PM UTC+8, meInvent bbird wrote:
1.
node A1 192.168.1.1
root@ubuntu:~/threadscope/parconc-examples-0.4.3/distrib-ping# ./ping-multi master 55000
Mon Jul 25 07:02:35 UTC 2016 pid://localhost:55000:0:10: spawning on nid://localhost:44440:0
Mon Jul 25 07:02:35 UTC 2016 pid://localhost:55000:0:10: spawning on nid://localhost:44442:0
Mon Jul 25 07:02:35 UTC 2016 pid://localhost:55000:0:10: spawning on nid://localhost:55555:0
Mon Jul 25 07:02:35 UTC 2016 pid://localhost:55000:0:10: spawning on nid://localhost:55557:0
Mon Jul 25 07:02:35 UTC 2016 pid://localhost:55000:0:10: pinging pid://localhost:44440:0:12
Mon Jul 25 07:02:35 UTC 2016 pid://localhost:55000:0:10: pinging pid://localhost:44442:0:12
Mon Jul 25 07:02:35 UTC 2016 pid://localhost:55000:0:10: pinging pid://localhost:55555:0:14
Mon Jul 25 07:02:35 UTC 2016 pid://localhost:55000:0:10: pinging pid://localhost:55557:0:14
Mon Jul 25 07:02:35 UTC 2016 pid://localhost:44440:0:12: ping received from pid://localhost:55000:0:10
Mon Jul 25 07:02:35 UTC 2016 pid://localhost:44442:0:12: ping received from pid://localhost:55000:0:10
node A2 192.168.1.2
root@ubuntu:~/threadscope/parconc-examples-0.4.3/distrib-ping# ./ping-multi slave 192.168.1.2 55000
ping-multi: bind: unsupported operation (Cannot assign requested address) root@ubuntu:~/threadscope/parconc-examples-0.4.3/distrib-ping# ./ping-multi slave 192.168.1.2 55000
2.
finally, i would like to split a list into [[],[],[]...] and send to two slave nodes to run which master map function to each list and use mconcat to reduce to one result from two slave nodes
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)