add do_work_parallel tool with cpp11 and java version.