if you dont use the visa issued by the company , you have to wait for 6 months till the expiry of the visa. if you happen to come to an understanding with the first company and cancel the visa, then the second company apply for a new visa without any hitch.