For msgno x , if the mux[j] is not connected the next mux is used. So when the next msgno comes in it will send it through the mux that was previously used if we dont increment the msgno.