Richard, Bengt: I changed the code with you suggestions and here are my results: $ ./run.sh Hostname: dell-desktop Proc[0]: iterating from 0 to 50000000 Proc[1]: iterating from 50000000 to 100000000 Result: 1.8390715290761144 real 0m10.988s user 0m9.405s sys 0m0.044s Thank you guys. Regards, -- Ale.