Behind the scene of Non-Blocking Technique of New I/O
Ko Ko Naing
posted 11 years ago
To Mr.Elliotte, I am just curious to know the stuff that is done behind the scene of Non-Blocking Technique of New I/O. You told us in this thread that third edition of your book introduces non-blocking networking techniques from new I/O API.
I just would like to know how those non-blocking techniques are achieved by the system. Suppose that we use listener-based events to find out whether the incoming messages are sent to the server or not. How can the system know that "Yeah! there is an incoming message and kind of message incoming event is delivered to the object implementing the listener"? Of course, we can see that blocking technique always listen to the client and when the message comes up, it will read from the receive() blocking method. I am just curious to know how things work in non-blocking system. Thanks...