Subexec spawns n subprocess with an optional timeout