System Design - race-conditions