Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Java, channel block and non blocking mode

Posted on 2011-03-24
2
661 Views
Last Modified: 2012-06-27
I am reading Java api datagramchannel.java. There is block mode and there is non blocking mode. What does this block mode mean? What does this non-blocking mode mean?
0
Comment
Question by:JianJunShen
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 400 total points
ID: 35206419
Blocking means that the stream will block when you attempt to read, halting the reading thread if there are no data to read.
Non-blocking is when an event-driven approach is used: a method is called when new data come in
0
 
LVL 92

Assisted Solution

by:objects
objects earned 100 total points
ID: 35211171
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Apps blocked by Java 9 88
Java string replace 11 54
How to convert from xls to xlsx using java 7 55
Java program running SQL query 5 37
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question