Support multithreaded workers with parameter 'num_workers'