run one thread per group of daemons