Parallel Runner with Exclusive Targets A and B

Asked at Tesla · Coding Questions · Difficulty: Medium · Last asked Jan 15, 2026

Concurrency prompt for infra / GPU-adjacent teams: start 10 parallel copies of `main`; each copy must run target `A` or `B`, never more than one per target at a time, while keeping both targets maximally utilized.

Loading the problem…