<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Simon Perreault wrote:
<blockquote cite="mid200711221348.13139.simon.perreault@viagenie.ca"
type="cite">
<pre wrap="">On Thursday 22 November 2007 13:30:58 Vadim Lebedev wrote:
</pre>
<blockquote type="cite">
<pre wrap="">the actuall SIP processing could be stalled during
i/o waits in activities
like logging or DB access.
</pre>
</blockquote>
<pre wrap=""><!---->
If I/O is blocking, then adding threads is not the solution.
Making it non-blocking (e.g. with aio), that is the solution.
</pre>
</blockquote>
I believe that it amounts to the same....<br>
When you use aio you simply using kernel-provided threads instead of
you own threads.<br>
If course aio risk to be a little more efficient, but it will be much
more complicated to code..<br>
<br>
<br>
It just occured to me, that it could be very interesting to monitor
amount of data is stored in the<br>
socket input buffer. <br>
<br>
Any idea how to do it? <br>
<br>
<br>
Vadim<br>
</body>
</html>