multicore higher-order functions