@classmethod
def start_all(kls, num, *args, **kwargs):
    """
        Create and start `num` workers. Arguments are passed to the worker's
        __init__ function.
        """
    workers = [kls(*args, id=id, **kwargs) for id in range(1, num + 1)]
    for worker in workers:
        worker.start()
    return workers
