optional thread limits for tasks