don't make threads if there aren't any tasks