com port checking + mutex -> atomic