I have an ASP.NET page with this pseduo code:
while (read) { Response.OutputStream.Write(buffer, 0, buffer.Length); Response.Flush(); }
Its because the thread gets a priority boost every time it yields its time slice. Avoid calling sleep often ( particularly with low values ).