|
A question about bidirectional connection
Suppose there is a socket connection between peerA and peerB:
peerA <-------------------> peerB
TheadA1 in peerA writes a lot of data to peerB as much as possible;
TheadA2 in peerA read data from peerB as quickly as possible;
TheadB1 in peerB writes data to peerA;
That is , there is no thead in peerB reading data from peerA;
My question:
What will happen at last ? I know TheadA1 in peerA will block, howabout TheadB1 in peerB and ThreadA2 in peerA ?
Thanks!
__________________
Eric RC
www.genband.com (telecommunication)
I like ICE (Ice for C++/Java/Python)
|