Excellent.� Thank you.<br><br>- Jim<br><br>Jim Irrer � � <a href="mailto:irrer@umich.edu">irrer@umich.edu</a> � � � (734) 647-4409<br>University of Michigan Hospital Radiation Oncology<br>519 W. William St. � � � � � � Ann Arbor, MI 48103<br>

<br><br><div class="gmail_quote">On Thu, Feb 18, 2010 at 3:32 PM, Tony Garnock-Jones <span dir="ltr">&lt;<a href="mailto:tonyg@lshift.net">tonyg@lshift.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Jim Irrer wrote:<br>
&gt; So the C client is different from the Java client implementation, which<br>
&gt; says that multiple threads can share a connection, but not a channel<br>
<br>
</div>Yes, that&#39;s right.<br>
<div class="im"><br>
&gt; If I have a multi-threaded Java client that needs many channels, then<br>
&gt; it is ok (and more efficient) to have one connection and construct<br>
&gt; many channels from it?<br>
<br>
</div>It&#39;s certainly OK. Whether it&#39;s more efficient or not depends on exactly<br>
what you&#39;re doing, but it is definitely more efficient in terms of<br>
socket/TCP resource use. Bear in mind that all the channels are<br>
multiplexed together onto a single TCP socket, and so one channel may<br>
momentarily force another to wait.<br>
<font color="#888888"><br>
Tony<br>
<br>
</font></blockquote></div><br>