Is it possible that two threads/processes do I/O through one RS232 port?
Does Microsoft Windows synchronize the RS232 port access with the threads?
In other words:
I do have a microcontroller which is connected to a PC using RS232.
The microcontroller sends every ASCII symbol back it receives.
On the PC, I have two threads running.
Thread/Process A sends ASCII "A" to the microcontroller and waits for a response.
Thread/Process B sends ASCII "B" to the microcontroller and waits for a response.
Can I assume that Thread A only receives "A"s back? In case Windows does not synchronize the port, there would be a possibility for Thread A to receive a "B".
Do you know of whether Windows synchronizes the RS232 access, so that two threads/processes can communicate "simultaneously" with e.g. a microcontroller without receiving each other's answers?
Thank you so much.