Run tasks in time units where each unit's memory stays under a limit and no type runs more than twice at once.
Run tasks in time units where each unit's memory stays under a limit and no type runs more than twice at once.
The discussion opens with the full question.