View Single Post
  #1 (permalink)  
Old 07-21-2005
rc_hz rc_hz is offline
Registered User
 
Name: Eric RC
Organization: www.genband.com
Project: No project yet
 
Join Date: Jul 2004
Location: Hangzhou, China
Posts: 189
Send a message via MSN to rc_hz
-->
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)
Reply With Quote