• Post Reply Bookmark Topic Watch Topic
  • New Topic

Behind the scene of Non-Blocking Technique of New I/O  RSS feed

 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!