« first day    last day (15 days later) » 

2:27 AM
Blocking on each IO operation is not really happening. The TCP/IP stack queues incoming messages and when an application calls read and there is data, there is no blocking. If there is no data, well then blocking is okay. As the alternative would be spinning. Applications which have multiple connections can quite easily use mechanisms like epoll/kqueuue/completion ports to keep thread count sane.
 
 
12 hours later…
2:32 PM
Your argument now appears to be that non-blocking I/O operations can only be useful as long as they aren't labeled as non-blocking. I think the fundamental disconnect is you think that if you call something "non-blocking" that prohibits blocking anywhere. If you call something "asynchronous" does it prohibit any synchronization? I encourage you to try any of the boost:: asio example programs. Contrary to your assertion, I think you'll find that none of them spin.
 
3:09 PM
I stand by my original statement: You are conflating non-blocking I/O with polling. And I think you are trying to make up your own personal definition of non-blocking so that it requires polling. Which is your prerogative, I suppose, except that isn't what boost::asio does and you are rejecting it based on the misapplication of your definition.
 
 
4 hours later…
7:34 PM
Perhaps an appeal to logic would help. Consider this syllogism: (1) All non-blocking I/O APIs require spinning. (2) boost::asio is a non-blocking I/O API. (3) Therefore, boost::asio requires spinning. There are many counter-examples to show that (3) is false. This means that either (1) or (2) must be false (or both). If (1) is false, that contradicts your basic position. If (2) is false, your position isn't relevant to boost::asio.
 

« first day    last day (15 days later) »