If the company A already submited the vis at immigration then they have to withdraw before company B apply.... When company A dosent have an require visa then u dont have to wait for them just get ur NOC from company A and submite to company B........