Multitask quantum thermal machines and cooperative effects