Current location - Quotes Website - Team slogan - How can two threads send data to a serial port simultaneously?
How can two threads send data to a serial port simultaneously?
You can't. 1, when debugging the program, you can test it through the virtual serial port. 2. Generate a pair of serial ports and connect them to form a serial communication line. 3. In this way, program A opens one port 1 for reading, and program B opens another port 2 for writing.